Author: pferraro
Date: 2008-09-23 00:49:31 -0400 (Tue, 23 Sep 2008)
New Revision: 1887
Modified:
trunk/mod_cluster/pom.xml
Log:
Add demo profile
Modified: trunk/mod_cluster/pom.xml
===================================================================
--- trunk/mod_cluster/pom.xml 2008-09-23 04:48:55 UTC (rev 1886)
+++ trunk/mod_cluster/pom.xml 2008-09-23 04:49:31 UTC (rev 1887)
@@ -226,30 +226,30 @@
</activation>
<build>
<plugins>
- <!-- The individual integration tests are built and run using Ant -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>build-tests</id>
- <goals>
- <goal>run</goal>
- </goals>
- <phase>integration-test</phase>
- <configuration>
- <tasks>
-
- <!-- Execute the Test Build -->
- <ant antfile="build-test.xml" target="main" />
-
- <!-- Execute the integration tests that require httpd -->
- <ant antfile="build-test.xml"
target="tests-apache-integration" />
-
- </tasks>
- </configuration>
- </execution>
- </executions>
+ <!-- The individual integration tests are built and run using Ant -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>build-tests</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>integration-test</phase>
+ <configuration>
+ <tasks>
+
+ <!-- Execute the Test Build -->
+ <ant antfile="build-test.xml" target="main"
/>
+
+ <!-- Execute the integration tests that require httpd -->
+ <ant antfile="build-test.xml"
target="tests-apache-integration" />
+
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
@@ -262,9 +262,73 @@
<version>4.4</version>
</dependency>
</dependencies>
- </plugin>
+ </plugin>
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>demo</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ <property>
+ <name>maven.demo</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-core-dependencies</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.jboss.native</groupId>
+ <artifactId>mod-cluster</artifactId>
+ </artifactItem>
+ </artifactItems>
+
<outputDirectory>${project.build.directory}/dependencies/lib</outputDirectory>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ <stripVersion>true</stripVersion>
+ <!-- <excludeTransitive>true</excludeTransitive>
-->
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>build-demo</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+
+ <!-- Execute the Test Build -->
+ <ant antfile="build-demo.xml" target="main"
/>
+
+ <!-- Execute the demo that require httpd -->
+ <ant antfile="build-demo.xml"
target="run-demo" />
+
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
Show replies by date