You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2007/07/30 16:10:05 UTC
svn commit: r560989 - /activemq/trunk/activemq-core/pom.xml
Author: chirino
Date: Mon Jul 30 07:10:04 2007
New Revision: 560989
URL: http://svn.apache.org/viewvc?view=rev&rev=560989
Log:
Fixed pom so that it generates the openwire commands when mvn clean compile -P openwire-generate
is run
Modified:
activemq/trunk/activemq-core/pom.xml
Modified: activemq/trunk/activemq-core/pom.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/pom.xml?view=diff&rev=560989&r1=560988&r2=560989
==============================================================================
--- activemq/trunk/activemq-core/pom.xml (original)
+++ activemq/trunk/activemq-core/pom.xml Mon Jul 30 07:10:04 2007
@@ -169,7 +169,7 @@
</dependency>
</dependencies>
- <reporting>
+ <reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -248,8 +248,8 @@
</configuration>
</plugin>
</plugins>
- </reporting>
-
+ </reporting>
+
<build>
<plugins>
<!-- Configure which tests are included/excuded -->
@@ -370,21 +370,6 @@
<executions>
<execution>
- <id>default</id>
- <phase>default</phase>
- <configuration>
- <tasks>
- <echo>Running OpenWire Generator</echo>
- <taskdef name="generate" classname="org.apache.activemq.openwire.tool.JavaGeneratorTask"/>
- <generate version="3" basedir="${basedir}"/>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
-
- <execution>
<id>site</id>
<phase>site</phase>
<configuration>
@@ -410,11 +395,6 @@
</executions>
<dependencies>
<dependency>
- <groupId>org.apache.activemq</groupId>
- <artifactId>activemq-openwire-generator</artifactId>
- <version>${activemq-version}</version>
- </dependency>
- <dependency>
<groupId>xsddoc</groupId>
<artifactId>maven-xsddoc-plugin</artifactId>
<version>1.0</version>
@@ -488,6 +468,43 @@
</build>
<profiles>
+
+ <profile>
+ <id>openwire-generate</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.activemq</groupId>
+ <artifactId>activemq-openwire-generator</artifactId>
+ <version>${activemq-version}</version>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <tasks>
+ <echo>Running OpenWire Generator</echo>
+ <taskdef name="generate" classname="org.apache.activemq.openwire.tool.JavaGeneratorTask" classpathref="maven.compile.classpath"/>
+ <generate version="3" basedir="${basedir}"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
<profile>
<id>jdk1.4</id>
<activation>
@@ -498,10 +515,9 @@
<groupId>activesoap</groupId>
<artifactId>jaxp-api</artifactId>
</dependency>
-
</dependencies>
</profile>
+
</profiles>
-
</project>