You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by jw...@apache.org on 2012/10/10 01:26:00 UTC

svn commit: r1396401 - /aries/trunk/application/application-itests/pom.xml

Author: jwross
Date: Tue Oct  9 23:26:00 2012
New Revision: 1396401

URL: http://svn.apache.org/viewvc?rev=1396401&view=rev
Log:
I was never able to reproduce the "active by default equinox38 profile not executing" condition locally, even with maven 2.2.1 running a full build using the same command line args that the Aries build uses. However, some research led me to believe that relying on activeByDefault=true is perilous under the best of circumstances regardless. The trick was to leave a configuration for the maven-paxexam-plugin using 3.8 within the main POM sections so there's always something to execute. Profiles for 3.7 and 3.5 are then defined and will override the 3.8 functionality when specified.

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=1396401&r1=1396400&r2=1396401&view=diff
==============================================================================
--- aries/trunk/application/application-itests/pom.xml (original)
+++ aries/trunk/application/application-itests/pom.xml Tue Oct  9 23:26:00 2012
@@ -253,43 +253,40 @@
                 </executions>
             </plugin>
             <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <forkMode>pertest</forkMode>
+                    <excludes>
+                        <exclude>**/*$*</exclude>
+                        <exclude>**/Abstract*.java</exclude>
+                    </excludes>
+                    <includes>
+                        <include>**/Test*.java</include>
+                        <include>**/*Test.java</include>
+                    </includes>
+                </configuration>
+            </plugin>
+            <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>
+		        	<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>
-                    <forkMode>pertest</forkMode>
-                    <excludes>
-                        <exclude>**/*$*</exclude>
-                        <exclude>**/Abstract*.java</exclude>
-                    </excludes>
-                    <includes>
-                        <include>**/Test*.java</include>
-                        <include>**/*Test.java</include>
-                    </includes>
-                </configuration>
-            </plugin>
+		        </configuration>
+			</plugin>
         </plugins>
     </build>
 
@@ -317,5 +314,65 @@
                 </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>
     </profiles>
 </project>