Author: lfryc(a)redhat.com
Date: 2010-07-10 17:01:43 -0400 (Sat, 10 Jul 2010)
New Revision: 17890
Modified:
root/tests/metamer/trunk/ftest/pom.xml
Log:
automatic preparation of apache tomcat 6.0.26 with EL 2.2 dependencies
Modified: root/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- root/tests/metamer/trunk/ftest/pom.xml 2010-07-10 21:01:29 UTC (rev 17889)
+++ root/tests/metamer/trunk/ftest/pom.xml 2010-07-10 21:01:43 UTC (rev 17890)
@@ -20,10 +20,24 @@
<properties>
<context.path>/testapp/</context.path>
<deployable.version>4.0.0-SNAPSHOT</deployable.version>
- <tomcat6x.installer.url.unix>file:/qa/home/lfryc/apache-tomcat-6.0.26--jsf2.zip</tomcat6x.installer.url.unix>
- <container.dir.deflatted>apache-tomcat-6.0.26--jsf2</container.dir.deflatted>
</properties>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>ossrh</id>
+ <name>Sonatype OSS Repository</name>
+ <
url>http://oss.sonatype.org/content/groups/public</url>
+ <layout>default</layout>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <repositories>
+ <repository>
+ <id>download-java-net-glassfish</id>
+ <
url>http://download.java.net/maven/glassfish</url>
+ </repository>
+ </repositories>
+
<dependencies>
<dependency>
<groupId>org.richfaces.examples</groupId>
@@ -43,7 +57,9 @@
<profile>
<id>container-deploy-artifact</id>
<activation>
- <activeByDefault>true</activeByDefault>
+ <property>
+ <name>containerId</name>
+ </property>
</activation>
<build>
<plugins>
@@ -70,6 +86,94 @@
</build>
</profile>
<profile>
+ <id>container-tomcat6x-deploy-el2.2-libs</id>
+ <activation>
+ <property>
+ <name>containerId</name>
+ <value>tomcat6x</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.savage7.maven.plugins</groupId>
+ <artifactId>maven-external-dependency-plugin</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ <inherited>false</inherited>
+ <configuration>
+ <stagingDirectory>${project.build.directory}/dependencies/</stagingDirectory>
+ <createChecksum>true</createChecksum>
+ <skipChecksumVerification>false</skipChecksumVerification>
+ <force>false</force>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jasper</artifactId>
+ <version>6.0.26</version>
+ <classifier>el-2.2</classifier>
+ <packaging>jar</packaging>
+ <downloadUrl>http://www.fryc.eu/dependencies/jasper.jar</downloadUrl>
+ <checksum>762a42f8d269d128a9262c0654bacc062439c415</checksum>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ <executions>
+ <execution>
+ <id>resolve-install-external-dependencies</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>resolve-external</goal>
+ <goal>install-external</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy-el-2.2-libs</id>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <phase>process-test-resources</phase>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jasper</artifactId>
+ <version>6.0.26</version>
+ <classifier>el-2.2</classifier>
+ <overWrite>true</overWrite>
+ <outputDirectory>${container.home}/lib</outputDirectory>
+ <destFileName>jasper.jar</destFileName>
+ </artifactItem>
+ <artifactItem>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ <overWrite>true</overWrite>
+ <outputDirectory>${container.home}/lib</outputDirectory>
+ <destFileName>el-api.jar</destFileName>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.glassfish.web</groupId>
+ <artifactId>el-impl</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ <overWrite>true</overWrite>
+ <outputDirectory>${container.home}/lib</outputDirectory>
+ <destFileName>el-impl.jar</destFileName>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
<id>unpack-test-source</id>
<activation>
<activeByDefault>true</activeByDefault>
@@ -160,6 +264,13 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>