-- 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> <parent>
<groupId>com.sourcesense.alfresco</groupId> <groupId>com.sourcesense.alfresco</groupId>
<artifactId>maven-alfresco-archetypes</artifactId> <artifactId>maven-alfresco-archetypes</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
</parent> </parent>
<build> <build>
<extensions> <extensions>

View File

@ -32,7 +32,12 @@
remove the filtering and maintaining versions (pom and module.properties) aligned manually remove the filtering and maintaining versions (pom and module.properties) aligned manually
--> -->
<version>${version}</version> <version>${version}</version>
<description>Test AMP project</description> <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> <properties>
<!--Default for which src/main/properties/<env>/application.properties is loaded. NB: <!--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) used only for the 'test' profile (e.g. '-P test' on the mvn commandline)
@ -200,7 +205,7 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<executions> <executions>
<!-- Runs jetty when 'integration-test' phase is called --> <!-- Runs war packaging when 'integration-test' phase is called -->
<execution> <execution>
<id>it</id> <id>it</id>
<phase>package</phase> <phase>package</phase>

View File

@ -28,7 +28,7 @@
<parent> <parent>
<groupId>com.sourcesense.alfresco</groupId> <groupId>com.sourcesense.alfresco</groupId>
<artifactId>maven-alfresco-archetypes</artifactId> <artifactId>maven-alfresco-archetypes</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
</parent> </parent>
<description> <description>
This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to 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]: --- 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) (default env=src/main/properties/local/application.properties)

View File

@ -25,7 +25,12 @@
<name>Alfresco extension</name> <name>Alfresco extension</name>
<packaging>war</packaging> <packaging>war</packaging>
<url></url> <url></url>
<description>Alfresco extension</description> <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) | By default the project is overlayed to the alfresco war which depends upon and deployed as a WAR (local development and testing purposes)
@ -149,9 +154,21 @@
<artifactId>alfresco-remote-api</artifactId> <artifactId>alfresco-remote-api</artifactId>
<version>2.1.0</version> <version>2.1.0</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </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
<dependency>
<scope>runtime</scope>
<type>amp</type>
<artifactId>recordsmanagement</artifactId>
<version>2.1.0</version>
<groupId>org.alfresco.community</groupId>
</dependency>
-->
<!-- Uncomment if you're using mysql --> <!-- Comment if you're not using mysql -->
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
@ -257,10 +274,6 @@
<artifactId>wagon-webdav</artifactId> <artifactId>wagon-webdav</artifactId>
<version>1.0-beta-3</version> <version>1.0-beta-3</version>
</extension> </extension>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
</extension>
</extensions> </extensions>
<!-- In certain cases we do build time filtering with the single sourcing application.properties --> <!-- In certain cases we do build time filtering with the single sourcing application.properties -->
<filters> <filters>
@ -383,19 +396,30 @@
</webResources> </webResources>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.mortbay.jetty</groupId> <groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId> <artifactId>maven-jetty-plugin</artifactId>
<configuration> <executions>
<contextPath>/${webapp.name}</contextPath> <!-- Runs jetty when 'integration-test' phase is called -->
<scanIntervalSeconds>10</scanIntervalSeconds> <execution>
<connectors> <id>it</id>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <phase>integration-test</phase>
<port>8080</port> <goals>
<maxIdleTime>60000</maxIdleTime> <goal>run-exploded</goal>
</connector> </goals>
</connectors> <configuration>
</configuration> <contextPath>/${webapp.name}</contextPath>
<webApp>${pom.build.directory}/${webapp.name}</webApp>
<scanIntervalSeconds>10</scanIntervalSeconds>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
</configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.cargo</groupId> <groupId>org.codehaus.cargo</groupId>