Author: lfryc(a)redhat.com
Date: 2010-09-20 11:20:19 -0400 (Mon, 20 Sep 2010)
New Revision: 19265
Modified:
modules/tests/metamer/trunk/application/pom.xml
Log:
configured pom for generating war with jsf snapshots
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2010-09-20 14:01:02 UTC (rev 19264)
+++ modules/tests/metamer/trunk/application/pom.xml 2010-09-20 15:20:19 UTC (rev 19265)
@@ -116,11 +116,20 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <!-- disable default (inherited) attach-souces execution, use war sources
instead -->
+ <execution>
+ <id>attach-sources</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
- <classifier>jee6</classifier>
-
<packagingExcludes>WEB-INF/lib/jsf-api-*,WEB-INF/lib/jsf-impl-*,WEB-INF/lib/myfaces-api-*,WEB-INF/lib/myfaces-impl-*</packagingExcludes>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
@@ -133,16 +142,17 @@
</archive>
</configuration>
<executions>
+ <!-- disable default war execution (use jee6 profile instead) -->
<execution>
- <id>sources-classes</id>
+ <id>default-war</id>
+ <phase>none</phase>
+ </execution>
+ <execution>
+ <id>exploded-war</id>
<phase>package</phase>
<goals>
- <goal>war</goal>
+ <goal>exploded</goal>
</goals>
- <configuration>
- <attachClasses>true</attachClasses>
- <attachSources>true</attachSources>
- </configuration>
</execution>
</executions>
</plugin>
@@ -238,29 +248,62 @@
</build>
</profile>
<profile>
- <id>mojarra</id>
+ <id>war-default</id>
+ <activation>
+ <property>
+ <name>!disable-default-war</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>package</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <classifier>jee6</classifier>
+
<packagingExcludes>WEB-INF/lib/jsf-api-*,WEB-INF/lib/jsf-impl-*,WEB-INF/lib/myfaces-api-*,WEB-INF/lib/myfaces-impl-*</packagingExcludes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>default-war</id>
+ <phase>package</phase>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ <configuration>
+ <attachClasses>true</attachClasses>
+ <attachSources>true</attachSources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>war-mojarra</id>
<activation>
<property>
<name>!jsf_profile</name>
</property>
</activation>
- <dependencies>
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-api</artifactId>
- </dependency>
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- </dependency>
- </dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
- <id>myfaces</id>
+ <id>mojarra</id>
<phase>integration-test</phase>
<goals>
<goal>war</goal>
@@ -276,30 +319,20 @@
</build>
</profile>
<profile>
- <id>myfaces</id>
+ <id>war-myfaces</id>
<activation>
<property>
<name>jsf_profile</name>
<value>myfaces</value>
</property>
</activation>
- <dependencies>
- <dependency>
- <groupId>org.apache.myfaces.core</groupId>
- <artifactId>myfaces-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.myfaces.core</groupId>
- <artifactId>myfaces-impl</artifactId>
- </dependency>
- </dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
- <id>mojarra</id>
+ <id>myfaces</id>
<phase>integration-test</phase>
<goals>
<goal>war</goal>
@@ -314,6 +347,64 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>war-mojarra-snapshot</id>
+ <activation>
+ <property>
+ <name>jsf_profile</name>
+ <value>jsf_ri_2_1_snapshot</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>mojarra-snapshot</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ <configuration>
+ <classifier>mojarra-snapshot</classifier>
+
<packagingExcludes>WEB-INF/lib/myfaces-api-*,WEB-INF/lib/myfaces-impl-*</packagingExcludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>war-myfaces-snapshot</id>
+ <activation>
+ <property>
+ <name>jsf_profile</name>
+ <value>myfaces_snapshot</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>myfaces-snapshot</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ <configuration>
+ <classifier>myfaces-snapshot</classifier>
+
<packagingExcludes>WEB-INF/lib/jsf-api-*,WEB-INF/lib/jsf-impl-*</packagingExcludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
Show replies by date