-- fully tested and added samples

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@39 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
mindthegab 2008-07-10 17:22:33 +00:00
parent 2bf4a9093f
commit 664484393c
5 changed files with 54 additions and 25 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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)

View File

@ -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>