[jboss-cvs] JBossAS SVN: r64828 - in projects/microcontainer/trunk: deployers-client and 6 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 23 18:15:22 EDT 2007


Author: pgier
Date: 2007-08-23 18:15:22 -0400 (Thu, 23 Aug 2007)
New Revision: 64828

Added:
   projects/microcontainer/trunk/deployers-impl/pom-jdk14.xml
   projects/microcontainer/trunk/deployers-spi/pom-jdk14.xml
   projects/microcontainer/trunk/deployers-structure-spi/pom-jdk14.xml
   projects/microcontainer/trunk/deployers-vfs-spi/pom-jdk14.xml
   projects/microcontainer/trunk/deployers-vfs/pom-jdk14.xml
Modified:
   projects/microcontainer/trunk/container/pom-jdk14.xml
   projects/microcontainer/trunk/deployers-client/pom-jdk14.xml
   projects/microcontainer/trunk/deployers-core/pom-jdk14.xml
Log:
[JBMICROCONT-93] Adding more jdk14 poms, fixing a few errors with existing jdk14 poms.

Modified: projects/microcontainer/trunk/container/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/container/pom-jdk14.xml	2007-08-23 22:12:48 UTC (rev 64827)
+++ projects/microcontainer/trunk/container/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -80,15 +80,6 @@
         <artifactId>maven-jar-plugin</artifactId>
         <executions>
           <execution>
-            <id>jar</id>
-            <goals>
-              <goal>jar</goal>
-            </goals>
-            <configuration>
-          		<classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
-            </configuration>
-          </execution>
-          <execution>
             <id>test-jar</id>
             <goals>
               <goal>test-jar</goal>
@@ -98,6 +89,9 @@
             </configuration>
           </execution>
         </executions>
+        <configuration>
+          <classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
+        </configuration>
       </plugin>
       <plugin>
         <!-- Skip the tests here because the jdk14 tests have

Modified: projects/microcontainer/trunk/deployers-client/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/deployers-client/pom-jdk14.xml	2007-08-23 22:12:48 UTC (rev 64827)
+++ projects/microcontainer/trunk/deployers-client/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -64,7 +64,7 @@
               <goal>test-jar</goal>
             </goals>
             <configuration>
-              <classesDirectory>${project.build.directory}/test-classes-jdk14</classesDirectory>
+              <testClassesDirectory>${project.build.directory}/test-classes-jdk14</testClassesDirectory>
             </configuration>
           </execution>
         </executions>

Modified: projects/microcontainer/trunk/deployers-core/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/deployers-core/pom-jdk14.xml	2007-08-23 22:12:48 UTC (rev 64827)
+++ projects/microcontainer/trunk/deployers-core/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -64,7 +64,7 @@
               <goal>test-jar</goal>
             </goals>
             <configuration>
-              <classesDirectory>${project.build.directory}/test-classes-jdk14</classesDirectory>
+              <testClassesDirectory>${project.build.directory}/test-classes-jdk14</testClassesDirectory>
             </configuration>
           </execution>
         </executions>

Added: projects/microcontainer/trunk/deployers-impl/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/deployers-impl/pom-jdk14.xml	                        (rev 0)
+++ projects/microcontainer/trunk/deployers-impl/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  - Notes for building and running tests.
+  - Do to some limitations of the maven surefire plugin, the tests must
+  - occur in a separate lifecycle from the build.
+  -
+  - mvn -f pom-jdk14.xml install  -  This will build the jdk14 version of the project.
+  - mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test  -  This will run the tests using a jdk1.4 jvm  
+  -    Note: the tests will not work by calling mvn test, it must be performed by calling surefire directly.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.microcontainer-jdk14</groupId>
+    <artifactId>jboss-microcontainer-jdk14</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+    <relativePath>../build/pom-jdk14.xml</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>jboss-deployers-impl-jdk14</artifactId>
+  <packaging>jar</packaging>
+  <name>JBoss Deployers Impl JDK 1.4</name>
+  <url>http://www.jboss.com/products/jbossmc</url>
+  <description>JBoss Deployers Impl</description>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-retro-plugin</artifactId>
+        <version>1.0-beta-1</version>
+        <executions>
+          <execution>
+            <id>weave-classes</id>
+            <goals>
+              <goal>weave</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+          <execution>
+            <id>weave-test-classes</id>
+            <goals>
+              <goal>weave-tests</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/test-classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <weaverClass>org.jboss.weaver.retro.WeaverRetroJdk14</weaverClass>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+        <executions>
+          <execution>
+            <id>test-jar</id>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+            <configuration>
+          		<testClassesDirectory>${project.build.directory}/test-classes-jdk14</testClassesDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
+        </configuration>
+      </plugin>
+      <plugin>
+        <!-- Skip the tests here because the jdk14 tests have
+          -  to be run in a separate profile.
+          -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>              
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <profiles>
+    <!-- Note: to run the jdk14 tests, the surefire plugin must be called outside
+      -  of the lifecycle.  In other words it should be called directly from the command
+      -  line like this
+      -     mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test
+      -->
+    <profile>
+      <id>run-jdk14-tests</id>
+      <properties>
+        <microcontainer.outputDirectory>target/classes-jdk14</microcontainer.outputDirectory>
+        <microcontainer.testOutputDirectory>target/test-classes-jdk14</microcontainer.testOutputDirectory>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <version>1.0-alpha-3</version>
+            <executions>
+              <execution>
+                <id>enforce-jdk14-property</id>
+                <goals>
+                  <goal>enforce-once</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <requireProperty>
+                      <property>java14_home</property>
+                      <message>
+                        The property java14_home should be set to a valid installation of jdk1.4.  The jdk14 tests cannot be run without this property.
+                      </message>
+                    </requireProperty>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <jvm>${java14_home}/bin/java</jvm>
+              <forkMode>always</forkMode>
+              <skip>false</skip>  
+              <redirectTestOutputToFile>false</redirectTestOutputToFile> 
+              <testFailureIgnore>true</testFailureIgnore>  
+              <useSystemClassLoader>true</useSystemClassLoader>    
+              <reportsDirectory>${project.build.directory}/surefire-reports-jdk14</reportsDirectory>
+              <includes>
+                <include>**/*TestCase.java</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+  
+  <!-- Do not add version information here, use ../build/pom.xml instead -->
+  <dependencies>
+    <!-- Global dependencies -->
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-spi-jdk14</artifactId>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-deployers-spi</artifactId>
+      <version>2.0.0-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-classloader-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-kernel-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+    </dependency>
+    <!-- Test dependencies -->
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-core-jdk14</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-client-jdk14</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>  
+</project>

Added: projects/microcontainer/trunk/deployers-spi/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/deployers-spi/pom-jdk14.xml	                        (rev 0)
+++ projects/microcontainer/trunk/deployers-spi/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  - Notes for building and running tests.
+  - Do to some limitations of the maven surefire plugin, the tests must
+  - occur in a separate lifecycle from the build.
+  -
+  - mvn -f pom-jdk14.xml install  -  This will build the jdk14 version of the project.
+  - mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test  -  This will run the tests using a jdk1.4 jvm  
+  -    Note: the tests will not work by calling mvn test, it must be performed by calling surefire directly.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.microcontainer-jdk14</groupId>
+    <artifactId>jboss-microcontainer-jdk14</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+    <relativePath>../build/pom-jdk14.xml</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>jboss-deployers-spi-jdk14</artifactId>
+  <packaging>jar</packaging>
+  <name>JBoss Deployers SPI JDK 1.4</name>
+  <url>http://www.jboss.com/products/jbossmc</url>
+  <description>JBoss Deployers SPI JDK 1.4</description>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-retro-plugin</artifactId>
+        <version>1.0-beta-1</version>
+        <executions>
+          <execution>
+            <id>weave-classes</id>
+            <goals>
+              <goal>weave</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+          <execution>
+            <id>weave-test-classes</id>
+            <goals>
+              <goal>weave-tests</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/test-classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <weaverClass>org.jboss.weaver.retro.WeaverRetroJdk14</weaverClass>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+        <configuration>
+          <classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
+        </configuration>
+      </plugin>
+      <plugin>
+        <!-- Skip the tests here because the jdk14 tests have
+          -  to be run in a separate profile.
+          -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>              
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <profiles>
+    <!-- Note: to run the jdk14 tests, the surefire plugin must be called outside
+      -  of the lifecycle.  In other words it should be called directly from the command
+      -  line like this
+      -     mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test
+      -->
+    <profile>
+      <id>run-jdk14-tests</id>
+      <properties>
+        <microcontainer.outputDirectory>target/classes-jdk14</microcontainer.outputDirectory>
+        <microcontainer.testOutputDirectory>target/test-classes-jdk14</microcontainer.testOutputDirectory>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <version>1.0-alpha-3</version>
+            <executions>
+              <execution>
+                <id>enforce-jdk14-property</id>
+                <goals>
+                  <goal>enforce-once</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <requireProperty>
+                      <property>java14_home</property>
+                      <message>
+                        The property java14_home should be set to a valid installation of jdk1.4.  The jdk14 tests cannot be run without this property.
+                      </message>
+                    </requireProperty>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <jvm>${java14_home}/bin/java</jvm>
+              <forkMode>always</forkMode>
+              <skip>false</skip>  
+              <redirectTestOutputToFile>true</redirectTestOutputToFile> 
+              <testFailureIgnore>true</testFailureIgnore>  
+              <useSystemClassLoader>true</useSystemClassLoader>    
+              <reportsDirectory>${project.build.directory}/surefire-reports-jdk14</reportsDirectory>
+              <includes>
+                <include>**/*.java</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+  
+  <!-- Do not add version information here, use ../build/pom.xml instead -->
+  <dependencies>
+    <!-- Global dependencies -->
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-structure-spi-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+    </dependency>
+  </dependencies>  
+</project>

Added: projects/microcontainer/trunk/deployers-structure-spi/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/deployers-structure-spi/pom-jdk14.xml	                        (rev 0)
+++ projects/microcontainer/trunk/deployers-structure-spi/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  - Notes for building and running tests.
+  - Do to some limitations of the maven surefire plugin, the tests must
+  - occur in a separate lifecycle from the build.
+  -
+  - mvn -f pom-jdk14.xml install  -  This will build the jdk14 version of the project.
+  - mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test  -  This will run the tests using a jdk1.4 jvm  
+  -    Note: the tests will not work by calling mvn test, it must be performed by calling surefire directly.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.microcontainer-jdk14</groupId>
+    <artifactId>jboss-microcontainer-jdk14</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+    <relativePath>../build/pom-jdk14.xml</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>jboss-deployers-structure-spi-jdk14</artifactId>
+  <packaging>jar</packaging>
+  <name>JBoss Deployers Structure SPI</name>
+  <url>http://www.jboss.com/products/jbossmc</url>
+  <description>JBoss Deployers Structure SPI JDK 1.4</description>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-retro-plugin</artifactId>
+        <version>1.0-beta-1</version>
+        <executions>
+          <execution>
+            <id>weave-classes</id>
+            <goals>
+              <goal>weave</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+          <execution>
+            <id>weave-test-classes</id>
+            <goals>
+              <goal>weave-tests</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/test-classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <weaverClass>org.jboss.weaver.retro.WeaverRetroJdk14</weaverClass>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+            <configuration>
+              <classesDirectory>${project.build.directory}/test-classes-jdk14</classesDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
+        </configuration>
+      </plugin>
+      <plugin>
+        <!-- Skip the tests here because the jdk14 tests have
+          -  to be run in a separate profile.
+          -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>              
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <profiles>
+    <!-- Note: to run the jdk14 tests, the surefire plugin must be called outside
+      -  of the lifecycle.  In other words it should be called directly from the command
+      -  line like this
+      -     mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test
+      -->
+    <profile>
+      <id>run-jdk14-tests</id>
+      <properties>
+        <microcontainer.outputDirectory>target/classes-jdk14</microcontainer.outputDirectory>
+        <microcontainer.testOutputDirectory>target/test-classes-jdk14</microcontainer.testOutputDirectory>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <version>1.0-alpha-3</version>
+            <executions>
+              <execution>
+                <id>enforce-jdk14-property</id>
+                <goals>
+                  <goal>enforce-once</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <requireProperty>
+                      <property>java14_home</property>
+                      <message>
+                        The property java14_home should be set to a valid installation of jdk1.4.  The jdk14 tests cannot be run without this property.
+                      </message>
+                    </requireProperty>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <jvm>${java14_home}/bin/java</jvm>
+              <forkMode>always</forkMode>
+              <skip>false</skip>  
+              <redirectTestOutputToFile>true</redirectTestOutputToFile> 
+              <testFailureIgnore>true</testFailureIgnore>  
+              <useSystemClassLoader>true</useSystemClassLoader>    
+              <reportsDirectory>${project.build.directory}/surefire-reports-jdk14</reportsDirectory>
+              <includes>
+                <include>**/*.java</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+  
+  <!-- Do not add version information here, use ../build/pom.xml instead -->
+  <dependencies>
+    <!-- Global dependencies -->
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-dependency-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-client-spi-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>osgi_R4_core</artifactId>
+    </dependency>
+	  <!-- Test dependencies -->
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-test-jdk14</artifactId>
+    </dependency>
+    <dependency>
+	    <groupId>junit</groupId>
+	    <artifactId>junit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-core-jdk14</artifactId>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-core-jdk14</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-client-jdk14</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  
+</project>

Added: projects/microcontainer/trunk/deployers-vfs/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/deployers-vfs/pom-jdk14.xml	                        (rev 0)
+++ projects/microcontainer/trunk/deployers-vfs/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  - Notes for building and running tests.
+  - Do to some limitations of the maven surefire plugin, the tests must
+  - occur in a separate lifecycle from the build.
+  -
+  - mvn -f pom-jdk14.xml install  -  This will build the jdk14 version of the project.
+  - mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test  -  This will run the tests using a jdk1.4 jvm  
+  -    Note: the tests will not work by calling mvn test, it must be performed by calling surefire directly.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.microcontainer-jdk14</groupId>
+    <artifactId>jboss-microcontainer-jdk14</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+    <relativePath>../build/pom-jdk14.xml</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>jboss-deployers-vfs-jdk14</artifactId>
+  <packaging>jar</packaging>
+  <name>JBoss Deployers VFS JDK 1.4</name>
+  <url>http://www.jboss.com/products/jbossmc</url>
+  <description>JBoss Deployers VFS</description>
+  <build>
+    <testResources>
+      <testResource>
+        <directory>src/resources/tests</directory>
+      </testResource>
+    </testResources>
+    <plugins>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-retro-plugin</artifactId>
+        <version>1.0-beta-1</version>
+        <executions>
+          <execution>
+            <id>weave-classes</id>
+            <goals>
+              <goal>weave</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+          <execution>
+            <id>weave-test-classes</id>
+            <goals>
+              <goal>weave-tests</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/test-classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <weaverClass>org.jboss.weaver.retro.WeaverRetroJdk14</weaverClass>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+        <executions>
+          <execution>
+            <id>test-jar</id>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+            <configuration>
+          		<testClassesDirectory>${project.build.directory}/test-classes-jdk14</testClassesDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
+        </configuration>
+      </plugin>
+      <plugin>
+        <!-- Skip the tests here because the jdk14 tests have
+          -  to be run in a separate profile.
+          -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>              
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <profiles>
+    <!-- Note: to run the jdk14 tests, the surefire plugin must be called outside
+      -  of the lifecycle.  In other words it should be called directly from the command
+      -  line like this
+      -     mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test
+      -->
+    <profile>
+      <id>run-jdk14-tests</id>
+      <properties>
+        <microcontainer.outputDirectory>target/classes-jdk14</microcontainer.outputDirectory>
+        <microcontainer.testOutputDirectory>target/test-classes-jdk14</microcontainer.testOutputDirectory>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <version>1.0-alpha-3</version>
+            <executions>
+              <execution>
+                <id>enforce-jdk14-property</id>
+                <goals>
+                  <goal>enforce-once</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <requireProperty>
+                      <property>java14_home</property>
+                      <message>
+                        The property java14_home should be set to a valid installation of jdk1.4.  The jdk14 tests cannot be run without this property.
+                      </message>
+                    </requireProperty>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <jvm>${java14_home}/bin/java</jvm>
+              <forkMode>always</forkMode>
+              <skip>false</skip>  
+              <redirectTestOutputToFile>false</redirectTestOutputToFile> 
+              <testFailureIgnore>true</testFailureIgnore>  
+              <useSystemClassLoader>true</useSystemClassLoader>    
+              <reportsDirectory>${project.build.directory}/surefire-reports-jdk14</reportsDirectory>
+              <includes>
+                <include>**/*TestCase.java</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+  
+  <!-- Do not add version information here, use ../build/pom.xml instead -->
+  <dependencies>
+    <!-- Global dependencies -->
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+	    <artifactId>jboss-deployers-vfs-spi-jdk14</artifactId>
+	 </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+	    <artifactId>jboss-kernel-jdk14</artifactId>
+	 </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+	    <artifactId>jboss-deployers-core-jdk14</artifactId>
+	 </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+	    <artifactId>jboss-deployers-client-jdk14</artifactId>
+	 </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+	    <artifactId>jboss-deployers-impl-jdk14</artifactId>
+	 </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-classloader</artifactId>
+      <version>2.0.0-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+    
+    <!-- Test dependencies -->
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-test-jdk14</artifactId>
+    </dependency>
+    <dependency>
+	    <groupId>junit</groupId>
+	    <artifactId>junit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-client-jdk14</artifactId>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-structure-spi-jdk14</artifactId>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-impl-jdk14</artifactId>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>  
+</project>

Added: projects/microcontainer/trunk/deployers-vfs-spi/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/deployers-vfs-spi/pom-jdk14.xml	                        (rev 0)
+++ projects/microcontainer/trunk/deployers-vfs-spi/pom-jdk14.xml	2007-08-23 22:15:22 UTC (rev 64828)
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  - Notes for building and running tests.
+  - Do to some limitations of the maven surefire plugin, the tests must
+  - occur in a separate lifecycle from the build.
+  -
+  - mvn -f pom-jdk14.xml install  -  This will build the jdk14 version of the project.
+  - mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test  -  This will run the tests using a jdk1.4 jvm  
+  -    Note: the tests will not work by calling mvn test, it must be performed by calling surefire directly.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.microcontainer-jdk14</groupId>
+    <artifactId>jboss-microcontainer-jdk14</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+    <relativePath>../build/pom-jdk14.xml</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>jboss-deployers-vfs-spi-jdk14</artifactId>
+  <packaging>jar</packaging>
+  <name>JBoss Deployers VFS SPI JDK 1.4</name>
+  <url>http://www.jboss.com/products/jbossmc</url>
+  <description>JBoss Deployers VFS SPI</description>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-retro-plugin</artifactId>
+        <version>1.0-beta-1</version>
+        <executions>
+          <execution>
+            <id>weave-classes</id>
+            <goals>
+              <goal>weave</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+          <execution>
+            <id>weave-test-classes</id>
+            <goals>
+              <goal>weave-tests</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/test-classes-jdk14</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <weaverClass>org.jboss.weaver.retro.WeaverRetroJdk14</weaverClass>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+        <executions>
+          <execution>
+            <id>test-jar</id>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+            <configuration>
+          		<testClassesDirectory>${project.build.directory}/test-classes-jdk14</testClassesDirectory>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
+        </configuration>
+      </plugin>
+      <plugin>
+        <!-- Skip the tests here because the jdk14 tests have
+          -  to be run in a separate profile.
+          -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>              
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <profiles>
+    <!-- Note: to run the jdk14 tests, the surefire plugin must be called outside
+      -  of the lifecycle.  In other words it should be called directly from the command
+      -  line like this
+      -     mvn -f pom-jdk14.xml -Prun-jdk14-tests surefire:test
+      -->
+    <profile>
+      <id>run-jdk14-tests</id>
+      <properties>
+        <microcontainer.outputDirectory>target/classes-jdk14</microcontainer.outputDirectory>
+        <microcontainer.testOutputDirectory>target/test-classes-jdk14</microcontainer.testOutputDirectory>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <version>1.0-alpha-3</version>
+            <executions>
+              <execution>
+                <id>enforce-jdk14-property</id>
+                <goals>
+                  <goal>enforce-once</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <requireProperty>
+                      <property>java14_home</property>
+                      <message>
+                        The property java14_home should be set to a valid installation of jdk1.4.  The jdk14 tests cannot be run without this property.
+                      </message>
+                    </requireProperty>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <jvm>${java14_home}/bin/java</jvm>
+              <forkMode>always</forkMode>
+              <skip>false</skip>  
+              <redirectTestOutputToFile>false</redirectTestOutputToFile> 
+              <testFailureIgnore>true</testFailureIgnore>  
+              <useSystemClassLoader>true</useSystemClassLoader>    
+              <reportsDirectory>${project.build.directory}/surefire-reports-jdk14</reportsDirectory>
+              <includes>
+                <include>**/*TestCase.java</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+  
+  <!-- Do not add version information here, use ../build/pom.xml instead -->
+  <dependencies>
+    <!-- Global dependencies -->
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-deployers-spi-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer-jdk14</groupId>
+      <artifactId>jboss-classloader-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.xml.bind</groupId>
+      <artifactId>jaxb-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>jboss</groupId>
+      <artifactId>jboss-vfs</artifactId>
+    </dependency>
+  </dependencies>  
+</project>




More information about the jboss-cvs-commits mailing list