-- updated to remove filtered resources

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@36 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
mindthegab
2008-07-10 14:47:55 +00:00
parent 73c8331f18
commit b49d6d5368
7 changed files with 413 additions and 373 deletions

View File

@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?><archetype> <?xml version="1.0" encoding="UTF-8"?><archetype>
<id>test</id> <id>maven-alfresco-amp-archetype</id>
<sources> <sources>
<source>src/main/java/com/sourcesense/demoamp/Demo.java</source> <source>src/main/java/com/sourcesense/demoamp/Demo.java</source>
<source>src/main/java/com/sourcesense/demoamp/DemoComponent.java</source> <source>src/main/java/com/sourcesense/demoamp/DemoComponent.java</source>
</sources> </sources>
<resources> <resources>
<resource>src/main/config/context/service-context.xml</resource> <resource filtered="false">src/main/config/context/service-context.xml</resource>
<resource>src/main/config/log4j.properties</resource> <resource filtered="false">src/main/config/log4j.properties</resource>
<resource>src/main/config/module-context.xml</resource> <resource filtered="false">src/main/config/module-context.xml</resource>
<resource>src/main/webapp/css/demoamp.css</resource> <resource filtered="false">src/main/webapp/css/demoamp.css</resource>
<resource>src/main/webapp/images/sourcesense.gif</resource> <resource filtered="false">src/main/webapp/images/sourcesense.gif</resource>
<resource>src/main/webapp/jsp/demoamp.jsp</resource> <resource filtered="false">src/main/webapp/jsp/demoamp.jsp</resource>
<resource>src/main/webapp/licenses/README-licenses.txt</resource> <resource filtered="false">src/main/webapp/licenses/README-licenses.txt</resource>
<resource>src/main/webapp/scripts/demoamp.js</resource> <resource filtered="false">src/main/webapp/scripts/demoamp.js</resource>
<resource>module.properties</resource> <resource filtered="false">module.properties</resource>
<resource>README.txt</resource> <resource filtered="false">README.txt</resource>
<resource>TODO.txt</resource> <resource filtered="false">TODO.txt</resource>
</resources> </resources>
<testResources> <testResources>
<resource>src/test/properties/local/application.properties</resource> <resource filtered="false">src/test/properties/local/application.properties</resource>
<resource>src/test/resources/alfresco/extension/custom-repository-context.xml</resource> <resource filtered="false">src/test/resources/alfresco/extension/custom-repository-context.xml</resource>
<resource>src/test/resources/alfresco/extension/file-servers-custom.xml</resource> <resource filtered="false">src/test/resources/alfresco/extension/file-servers-custom.xml</resource>
<resource>src/test/resources/log4j.properties</resource> <resource filtered="false">src/test/resources/log4j.properties</resource>
</testResources> </testResources>
</archetype> </archetype>

View File

@@ -118,7 +118,7 @@
<plugin> <plugin>
<groupId>org.alfresco.maven.plugin</groupId> <groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId> <artifactId>maven-amp-plugin</artifactId>
<version>1.0.0</version> <version>2.0.0</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<archive> <archive>
@@ -154,7 +154,7 @@
<resource> <resource>
<filtering>true</filtering> <filtering>true</filtering>
<directory>src/main/config</directory> <directory>src/main/config</directory>
<targetPath>alfresco/modules/${groupId}.${artifactId}</targetPath> <targetPath>alfresco/module/${groupId}.${artifactId}</targetPath>
<excludes> <excludes>
<exclude>**README-*</exclude> <exclude>**README-*</exclude>
</excludes> </excludes>
@@ -192,7 +192,7 @@
<dependency> <dependency>
<groupId>org.alfresco.maven.plugin</groupId> <groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId> <artifactId>maven-amp-plugin</artifactId>
<version>1.0.0</version> <version>2.0.0</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
@@ -244,7 +244,7 @@
<dependency> <dependency>
<groupId>org.alfresco.maven.plugin</groupId> <groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId> <artifactId>maven-amp-plugin</artifactId>
<version>1.0.0</version> <version>2.0.0</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>

View File

@@ -1,4 +1,4 @@
<?xml version='${version}' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!-- <!--
Licensed to the Apache Software Foundation (ASF) under one or more Licensed to the Apache Software Foundation (ASF) under one or more

View File

@@ -1,4 +1,4 @@
<?xml version='${version}' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<!-- <!--
Licensed to the Apache Software Foundation (ASF) under one or more Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with contributor license agreements. See the NOTICE file distributed with

View File

@@ -16,7 +16,8 @@
limitations under the License. limitations under the License.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId> <groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId> <artifactId>${artifactId}</artifactId>
@@ -99,8 +100,7 @@
<pluginRepository> <pluginRepository>
<id>Maven Snapshots</id> <id>Maven Snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2/</url> <url>http://snapshots.maven.codehaus.org/maven2/</url>
<snapshots> <snapshots></snapshots>
</snapshots>
<releases> <releases>
<enabled>false</enabled> <enabled>false</enabled>
</releases> </releases>
@@ -333,13 +333,54 @@
<locales>en</locales> <locales>en</locales>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-amps</id>
<phase>process-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeTypes>amp</includeTypes>
<outputDirectory>${build.directory}/${webapp.name}</outputDirectory>
<excludes>META*</excludes>
</configuration>
</execution>
</executions>
<dependencies>
<!-- This is required to be re-defined explicitly at plugin level as otherwise the 'amp' extension
unArchiver won't be available to the maven-dependency-plugin -->
<dependency>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<configuration> <configuration>
<archiveClasses>false</archiveClasses> <archiveClasses>false</archiveClasses>
<webappDirectory>target/${webapp.name}</webappDirectory> <webappDirectory>target/${webapp.name}</webappDirectory>
<warSourceExcludes>**classes/tools</warSourceExcludes> <warSourceExcludes>tools/**</warSourceExcludes>
<webResources>
</webResources>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
@@ -622,7 +663,7 @@
<configuration> <configuration>
<archiveClasses>false</archiveClasses> <archiveClasses>false</archiveClasses>
<webappDirectory>target/${webapp.name}</webappDirectory> <webappDirectory>target/${webapp.name}</webappDirectory>
<dependentWarExcludes >**/log4j.properties,**/lib/log4j*.jar,log4j.properties</dependentWarExcludes > <dependentWarExcludes>**/log4j.properties,**/lib/log4j*.jar,log4j.properties</dependentWarExcludes>
<warSourceExcludes>**/log4j.properties,WEB-INF/classes/tools</warSourceExcludes> <warSourceExcludes>**/log4j.properties,WEB-INF/classes/tools</warSourceExcludes>
</configuration> </configuration>
</plugin> </plugin>

View File

@@ -108,12 +108,6 @@
</goals> </goals>
<id>announcement-mail</id> <id>announcement-mail</id>
</execution> </execution>
<execution>
<goals>
<goal>jira-report</goal>
</goals>
<id>jira-report</id>
</execution>
</executions> </executions>
<!-- Automatically notifies the list when release is done. Please supply username and password in the command line --> <!-- Automatically notifies the list when release is done. Please supply username and password in the command line -->
<configuration> <configuration>
@@ -194,6 +188,10 @@
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId> <artifactId>taglist-maven-plugin</artifactId>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
</plugin>
</plugins> </plugins>
</reporting> </reporting>
<distributionManagement> <distributionManagement>

View File

@@ -20,6 +20,7 @@
<item name="Apache" href="http://www.apache.org/"/> <item name="Apache" href="http://www.apache.org/"/>
</links> </links>
<menu name="Modules"> <menu name="Modules">
<item name="Maven Alfresco AMP Archetype" href="../maven-alfresco-amp-archetype"/> <item name="Maven Alfresco AMP Archetype" href="../maven-alfresco-amp-archetype"/>
<item name="Maven Alfresco Eextension Archetype" href="../maven-alfresco-extension-archetype"/> <item name="Maven Alfresco Eextension Archetype" href="../maven-alfresco-extension-archetype"/>