Commit 3fec812f authored by mindthegab's avatar mindthegab
Browse files

-- fully tested and added samples

parent 9f149f5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@
	<parent>
		<groupId>com.sourcesense.alfresco</groupId>
		<artifactId>maven-alfresco-archetypes</artifactId>
		<version>1.0-SNAPSHOT</version>
		<version>1.0.0-SNAPSHOT</version>
	</parent>
	<build>
		<extensions>
+7 −2
Original line number Diff line number Diff line
@@ -33,6 +33,11 @@
	 -->
	<version>${version}</version>
	<description>Test AMP project</description>
	<parent>
		<groupId>com.sourcesense.alfresco</groupId>
		<artifactId>maven-alfresco-archetypes-base</artifactId>
		<version>1.0.0-SNAPSHOT</version>
	</parent>
	<properties>
		<!--Default for which src/main/properties/<env>/application.properties is loaded. NB: 
			used only for the 'test' profile (e.g. '-P test' on the mvn commandline)
@@ -200,7 +205,7 @@
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-war-plugin</artifactId>
						<executions>
							<!-- Runs jetty when 'integration-test' phase is called -->
							<!-- Runs war packaging when 'integration-test' phase is called -->
							<execution>
								<id>it</id>
								<phase>package</phase>
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
	<parent>
		<groupId>com.sourcesense.alfresco</groupId>
		<artifactId>maven-alfresco-archetypes</artifactId>
		<version>1.0-SNAPSHOT</version>
		<version>1.0.0-SNAPSHOT</version>
	</parent>
	<description>
		This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ Lifecycle HOWTO - Usage

--- Fast one shot build and embedded jetty run-war|run-exploded  [and restore bootstrap] [and customize webappName] [and integrate LDAP]:

' MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m mvn jetty:run-war|jetty:run-exploded [-Denv=yourEnv] [-DrestoreVersion=versionToRestore] [-DwebappName=yourCustomWebappName] [-Denterprise] ' 
' MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m mvn integration-test [-Denv=yourEnv] [-DrestoreVersion=versionToRestore] [-DwebappName=yourCustomWebappName] [-Denterprise] ' 

(default env=src/main/properties/local/application.properties)

+44 −20
Original line number Diff line number Diff line
@@ -26,6 +26,11 @@
	<packaging>war</packaging>
	<url></url>
	<description>Alfresco extension</description>
	<parent>
		<groupId>com.sourcesense.alfresco</groupId>
		<artifactId>maven-alfresco-archetypes-base</artifactId>
		<version>1.0.0-SNAPSHOT</version>
	</parent>
	<!--
		|
		| By default the project is overlayed to the alfresco war which depends upon and deployed as a WAR (local development and testing purposes)
@@ -150,8 +155,20 @@
			<version>2.1.0</version>
			<scope>provided</scope>
		</dependency>
		<!-- Sample of AMP dependency that will be properly uncompressed in the Alfresco WAR (no more need for AMP): 
		this can be either an AMP built with maven-amp-plugin and deployed on an accessible
		maven repo or a generally available AMP previously deployed to a repo using mvn deploy:deploy-file
		
		<!-- Uncomment if you're using mysql -->
		<dependency>
			<scope>runtime</scope>
			<type>amp</type>
			<artifactId>recordsmanagement</artifactId>
			<version>2.1.0</version>
			<groupId>org.alfresco.community</groupId>
		</dependency>
		-->

		<!-- Comment if you're not using mysql -->
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
@@ -257,10 +274,6 @@
				<artifactId>wagon-webdav</artifactId>
				<version>1.0-beta-3</version>
			</extension>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-ssh</artifactId>
			</extension>
		</extensions>
		<!-- In certain cases we do build time filtering with the single sourcing application.properties -->
		<filters>
@@ -386,8 +399,17 @@
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
				<executions>
					<!-- Runs jetty when 'integration-test' phase is called -->
					<execution>
						<id>it</id>
						<phase>integration-test</phase>
						<goals>
							<goal>run-exploded</goal>
						</goals>
						<configuration>
							<contextPath>/${webapp.name}</contextPath>
							<webApp>${pom.build.directory}/${webapp.name}</webApp>
							<scanIntervalSeconds>10</scanIntervalSeconds>
							<connectors>
								<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
@@ -396,6 +418,8 @@
								</connector>
							</connectors>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.cargo</groupId>