[jboss-cvs] JBossAS SVN: r64868 - in projects/microcontainer/trunk: kernel and 5 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 24 17:19:08 EDT 2007
Author: pgier
Date: 2007-08-24 17:19:08 -0400 (Fri, 24 Aug 2007)
New Revision: 64868
Added:
projects/microcontainer/trunk/aop-mc-int/pom-jdk14.xml
projects/microcontainer/trunk/osgi-int/pom-jdk14.xml
projects/microcontainer/trunk/spring-int/pom-jdk14.xml
projects/microcontainer/trunk/varia/osgi-api/pom-jdk14.xml
projects/microcontainer/trunk/varia/osgi-api/repository/pom-jdk14.xml
projects/microcontainer/trunk/varia/pom-jdk14.xml
Modified:
projects/microcontainer/trunk/kernel/pom-jdk14.xml
Log:
[JBMICROCONT-93] Adding more jdk1.4 poms.
Added: projects/microcontainer/trunk/aop-mc-int/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/pom-jdk14.xml (rev 0)
+++ projects/microcontainer/trunk/aop-mc-int/pom-jdk14.xml 2007-08-24 21:19:08 UTC (rev 64868)
@@ -0,0 +1,365 @@
+<?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-aop-mc-int-jdk14</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Microcontainer AOP MC INT JDK 1.4</name>
+ <url>http://www.jboss.com/products/jbossmc</url>
+ <description>JBoss Microcontainer</description>
+ <build>
+ <resources>
+ <resource>
+ <directory>src/resources/main</directory>
+ </resource>
+ </resources>
+ <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>
+ <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>
+ <executions>
+ <execution>
+ <id>weave</id>
+ <phase>test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ <includes>
+ <include>org/jboss/test/**/*TestCase.java</include>
+ </includes>
+ <useSystemClassLoader>true</useSystemClassLoader>
+ <argLine>-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader</argLine>
+ <reportsDirectory>${project.build.directory}/surefire-reports/weave</reportsDirectory>
+ <systemProperties>
+ <property>
+ <name>jboss.aop.exclude</name>
+ <value>org.jboss.,org.apache.</value>
+ </property>
+ <property>
+ <name>jboss.aop.include</name>
+ <value>org.jboss.test.</value>
+ </property>
+ <property>
+ <name>jboss-junit-configuration</name>
+ <value>weave</value>
+ </property>
+ <property>
+ <name>build.testlog</name>
+ <value>target/log</value>
+ </property>
+ <property>
+ <name>jboss.aop.verbose</name>
+ <value>true</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </execution>
+ <execution>
+ <id>weave-secure</id>
+ <phase>test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ <reportsDirectory>${project.build.directory}/surefire-reports/weave-secure</reportsDirectory>
+ <includes>
+ <include>org/jboss/test/**/*TestCase.java</include>
+ </includes>
+ <useSystemClassLoader>true</useSystemClassLoader>
+ <argLine>-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader</argLine>
+ <systemProperties>
+ <property>
+ <name>jboss.aop.exclude</name>
+ <value>org.jboss.,org.apache.</value>
+ </property>
+ <property>
+ <name>jboss.aop.include</name>
+ <value>org.jboss.test.</value>
+ </property>
+ <property>
+ <name>jboss-junit-configuration</name>
+ <value>weave</value>
+ </property>
+ <property>
+ <name>build.testlog</name>
+ <value>target/log</value>
+ </property>
+ <property>
+ <name>jboss.mc.secure</name>
+ <value>true</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </execution>
+ <execution>
+ <id>no-weave</id>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ <reportsDirectory>${project.build.directory}/surefire-reports/no-weave</reportsDirectory>
+ <includes>
+ <include>org/jboss/test/microcontainer/test/**/*TestCase.java</include>
+ </includes>
+ <systemProperties>
+ <property>
+ <name>jboss-junit-configuration</name>
+ <value>no_weave</value>
+ </property>
+ <property>
+ <name>build.testlog</name>
+ <value>target/log</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </execution>
+ <execution>
+ <id>no-weave-secure</id>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ <reportsDirectory>${project.build.directory}/surefire-reports/no-weave-secure</reportsDirectory>
+ <includes>
+ <include>org/jboss/test/microcontainer/test/**/*TestCase.java</include>
+ </includes>
+ <systemProperties>
+ <property>
+ <name>jboss-junit-configuration</name>
+ <value>no_weave</value>
+ </property>
+ <property>
+ <name>build.testlog</name>
+ <value>target/log</value>
+ </property>
+ <property>
+ <name>jboss.mc.secure</name>
+ <value>true</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </execution>
+ </executions>
+ <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>**/*TestCase.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/IsolatedClassLoaderUnitTestCase.java</exclude>
+ <exclude>**/DelegateUnitTestCase.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-test</artifactId>
+ <version>${version.org.jboss.test}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${version.junit}</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <!-- Do not add version information here, use ../build/pom.xml instead -->
+ <dependencies>
+ <!-- provided dependencies -->
+ <dependency>
+ <groupId>org.jboss.microcontainer</groupId>
+ <artifactId>jboss-container</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- Global dependencies -->
+ <dependency>
+ <groupId>org.jboss.aop-jdk14</groupId>
+ <artifactId>jboss-aop-jdk14</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-container-jdk14</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-dependency-jdk14</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-core-jdk14</artifactId>
+ </dependency>
+ <!--<dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-container-jdk14</artifactId>
+ <scope>runtime</scope>
+ </dependency>-->
+ <dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-dependency-jdk14</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-kernel-jdk14</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jbossxb</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-test-jdk14</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-retro</artifactId>
+ <classifier>rt</classifier>
+ <scope>compile</scope>
+ </dependency>
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-kernel-jdk14</artifactId>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Modified: projects/microcontainer/trunk/kernel/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/kernel/pom-jdk14.xml 2007-08-24 20:13:17 UTC (rev 64867)
+++ projects/microcontainer/trunk/kernel/pom-jdk14.xml 2007-08-24 21:19:08 UTC (rev 64868)
@@ -200,15 +200,17 @@
<!-- Do not add version information here, use ../build/pom.xml instead -->
<dependencies>
<!-- Global dependencies -->
- <!--<dependency>
- <groupId>org.jboss.microcontainer-jdk14</groupId>
- <artifactId>jboss-container-jdk14</artifactId>
- </dependency>-->
<dependency>
<groupId>org.jboss.microcontainer</groupId>
<artifactId>jboss-container</artifactId>
<version>2.0.0-SNAPSHOT</version>
+ <scope>provided</scope>
</dependency>
+ <!--<dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-container-jdk14</artifactId>
+ <scope>runtime</scope>
+ </dependency>-->
<dependency>
<groupId>org.jboss.microcontainer-jdk14</groupId>
<artifactId>jboss-dependency-jdk14</artifactId>
Added: projects/microcontainer/trunk/osgi-int/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/osgi-int/pom-jdk14.xml (rev 0)
+++ projects/microcontainer/trunk/osgi-int/pom-jdk14.xml 2007-08-24 21:19:08 UTC (rev 64868)
@@ -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-osgi-int-jdk14</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Microcontainer OSGI INT</name>
+ <url>http://www.jboss.com/products/jbossmc</url>
+ <description>JBoss Microcontainer</description>
+ <build>
+ <resources>
+ <resource>
+ <directory>src/resources/main</directory>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <directory>src/resources/tests</directory>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>javacc-maven-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>javacc</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <sourceDirectory>${basedir}/src/main</sourceDirectory>
+ <outputDirectory>${project.build.directory}/generated-sources/javacc/</outputDirectory>
+ <packageName>org.jboss.osgi.plugins.metadata</packageName>
+ </configuration>
+ </plugin>
+ <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>**/*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-kernel-jdk14</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-deployers-vfs-spi-jdk14</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi_R4_core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+ </dependency>
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-test-jdk14</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ </dependencies>
+</project>
Added: projects/microcontainer/trunk/spring-int/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/spring-int/pom-jdk14.xml (rev 0)
+++ projects/microcontainer/trunk/spring-int/pom-jdk14.xml 2007-08-24 21:19:08 UTC (rev 64868)
@@ -0,0 +1,174 @@
+<?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.
+ - Warning: tests are not currently working do to missing javax.xml.namespace.QName, this needs to
+ - be added to jboss-retro.
+ -->
+<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-spring-int-jdk14</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Microcontainer Spring Int JDK 1.4</name>
+ <url>http://www.jboss.com/products/jbossmc</url>
+ <description>JBoss Microcontainer Spring Integration</description>
+ <build>
+ <resources>
+ <resource>
+ <directory>src/resources/main</directory>
+ </resource>
+ </resources>
+ <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>
+ <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>**/*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>jboss</groupId>
+ <artifactId>jbossxb</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-kernel-jdk14</artifactId>
+ </dependency>
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-test-jdk14</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-container-jdk14</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-container-jdk14</artifactId>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: projects/microcontainer/trunk/varia/osgi-api/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/varia/osgi-api/pom-jdk14.xml (rev 0)
+++ projects/microcontainer/trunk/varia/osgi-api/pom-jdk14.xml 2007-08-24 21:19:08 UTC (rev 64868)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-microcontainer-osgi-api-jdk14</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>JBoss Microcontainer OSGi API JDK 1.4</name>
+ <url>http://www.jboss.com/products/jbossmc</url>
+ <description>
+ The JBoss Microcontainer provides a lightweight container for managing POJOs, their deployment
+ and configuration.
+ </description>
+ <!-- can't use the modules for alternate poms yet. -->
+ <!--<modules>
+ <module>repository</module>
+ </modules>-->
+ <distributionManagement>
+ <repository>
+ <!-- Copy the distribution jar file to a local checkout of the maven repository
+ - This variable can be set in $MAVEN_HOME/conf/settings.xml -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+</project>
Added: projects/microcontainer/trunk/varia/osgi-api/repository/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/varia/osgi-api/repository/pom-jdk14.xml (rev 0)
+++ projects/microcontainer/trunk/varia/osgi-api/repository/pom-jdk14.xml 2007-08-24 21:19:08 UTC (rev 64868)
@@ -0,0 +1,142 @@
+<?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-osgi-repository-api-jdk14</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss OSGi Repository API JDK 1.4</name>
+ <url>http://www.jboss.com/products/jbossmc</url>
+ <description>JBoss OSGi Repository API</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>**/*TestCase.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+ <!-- Do not add version information here, use ../build/pom.xml instead -->
+ <dependencies>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi_R4_core</artifactId>
+ </dependency>
+ </dependencies>
+</project>
Added: projects/microcontainer/trunk/varia/pom-jdk14.xml
===================================================================
--- projects/microcontainer/trunk/varia/pom-jdk14.xml (rev 0)
+++ projects/microcontainer/trunk/varia/pom-jdk14.xml 2007-08-24 21:19:08 UTC (rev 64868)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.microcontainer-jdk14</groupId>
+ <artifactId>jboss-microcontainer-varia-jdk14</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>JBoss Microcontainer Varia JDK 1.4</name>
+ <url>http://www.jboss.com/products/jbossmc</url>
+ <description>
+ The JBoss Microcontainer provides a lightweight container for managing POJOs, their deployment
+ and configuration.
+ </description>
+ <!-- can't use the modules for alternate poms yet. -->
+ <!--<modules>
+ <module>osgi-api</module>
+ </modules>-->
+ <distributionManagement>
+ <repository>
+ <!-- Copy the distribution jar file to a local checkout of the maven repository
+ - This variable can be set in $MAVEN_HOME/conf/settings.xml -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+</project>
More information about the jboss-cvs-commits
mailing list