Author: jwross
Date: Tue Oct 9 21:49:46 2012
New Revision: 1396352
URL: http://svn.apache.org/viewvc?rev=1396352&view=rev
Log:
The equinox38 profile will not execute on the build machine even when active by
default. This might be because the default activation policy is being
overridden by other profiles being specified somewhere else. I don't see this
occurring in the build configuration (e.g. via the command line), but there are
other places it could be happening. The profile activates fine locally, which I
found confusing. However, I then noticed that I'm using maven 3.0.4 locally
whereas the build uses maven 2.2.1. I need to test with 2.2.1 locally to see if
it can be reproduced.
In the meantime, I removed the profiles and put the maven-paxexam-plugin in the
general <build><plugins> section where it will always be executed. To switch
from one equinox version to another, the desired version would need to be
uncommented in the POM.
Another option would be to reinsert the profiles and specify the profile or a
system property as part of the build configuration.
Modified:
aries/trunk/application/application-itests/pom.xml
Modified: aries/trunk/application/application-itests/pom.xml
URL:
http://svn.apache.org/viewvc/aries/trunk/application/application-itests/pom.xml?rev=1396352&r1=1396351&r2=1396352&view=diff
==============================================================================
--- aries/trunk/application/application-itests/pom.xml (original)
+++ aries/trunk/application/application-itests/pom.xml Tue Oct 9 21:49:46 2012
@@ -236,7 +236,7 @@
<build>
<plugins>
- <plugin>
+ <plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>depends-maven-plugin</artifactId>
<version>1.2</version>
@@ -253,6 +253,29 @@
</executions>
</plugin>
<plugin>
+ <groupId>org.ops4j.pax.exam</groupId>
+ <artifactId>maven-paxexam-plugin</artifactId>
+ <version>1.2.3</version>
+ <executions>
+ <execution>
+ <id>generate-config</id>
+ <goals>
+ <goal>generate-config</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <options>
+ <platform>equinox</platform>
+ <!-- Uncomment the desired version. Only one
may be
+ uncommented at a time. -->
+ <version>3.8.0.V20120529-1548</version>
+ <!-- <version>3.7.0.v20110613</version> -->
+ <!-- <version>3.5.0</version> -->
+ </options>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
@@ -294,95 +317,5 @@
</plugins>
</build>
</profile>
- <profile>
- <id>equinox35</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.ops4j.pax.exam</groupId>
-
<artifactId>maven-paxexam-plugin</artifactId>
- <version>1.2.3</version>
- <executions>
- <execution>
- <id>generate-config</id>
-
<phase>process-test-resources</phase>
- <goals>
-
<goal>generate-config</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <options>
- <platform>equinox</platform>
- <version>3.5.0</version>
- </options>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>equinox37</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.ops4j.pax.exam</groupId>
-
<artifactId>maven-paxexam-plugin</artifactId>
- <version>1.2.3</version>
- <executions>
- <execution>
- <id>generate-config</id>
-
<phase>process-test-resources</phase>
- <goals>
-
<goal>generate-config</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <options>
- <platform>equinox</platform>
-
<version>3.7.0.v20110613</version>
- </options>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>equinox38</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.ops4j.pax.exam</groupId>
-
<artifactId>maven-paxexam-plugin</artifactId>
- <version>1.2.3</version>
- <executions>
- <execution>
- <id>generate-config</id>
-
<phase>process-test-resources</phase>
- <goals>
-
<goal>generate-config</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <options>
- <platform>equinox</platform>
-
<version>3.8.0.V20120529-1548</version>
- </options>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>