[jboss-cvs] JBossAS SVN: r64633 - projects/test/trunk.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 16 15:14:56 EDT 2007
Author: pgier
Date: 2007-08-16 15:14:55 -0400 (Thu, 16 Aug 2007)
New Revision: 64633
Added:
projects/test/trunk/pom-jdk14.xml
Log:
Adding pom for jdk14 builds.
Added: projects/test/trunk/pom-jdk14.xml
===================================================================
--- projects/test/trunk/pom-jdk14.xml (rev 0)
+++ projects/test/trunk/pom-jdk14.xml 2007-08-16 19:14:55 UTC (rev 64633)
@@ -0,0 +1,208 @@
+<?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</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>3</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-test-jdk14</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Test</name>
+ <version>1.0.4-SNAPSHOT</version>
+ <description>Common test support classes</description>
+ <url>http://www.jboss.org</url>
+ <scm>
+ <developerConnection>https://svn.jboss.org/repos/jbossas/projects/test/trunk</developerConnection>
+ </scm>
+ <build>
+ <outputDirectory>${mainOutputDir}</outputDirectory>
+ <testOutputDirectory>${testOutputDir}</testOutputDirectory>
+ <plugins>
+ <plugin>
+ <groupId>jboss.maven-plugins</groupId>
+ <artifactId>jboss-deploy-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <tagBase>https://svn.jboss.org/repos/jbossas/projects/test/tags</tagBase>
+ </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>
+ <configuration>
+ <classesDirectory>${project.build.directory}/classes-jdk14</classesDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <!-- Skip the tests here because the jdk14 tests have
+ - to run the tests in a separate profile.
+ -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.6.5</version>
+ </dependency>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant-junit</artifactId>
+ <version>1.6.5</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-logging-spi-jdk14</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-logging-log4j-jdk14</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-core-jdk14</artifactId>
+ <version>2.2.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>jboss.profiler.jvmti</groupId>
+ <artifactId>jboss-profiler-jvmti</artifactId>
+ <version>1.0.0.CR5</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-backport-concurrent</artifactId>
+ <version>2.1.0.GA</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-retro</artifactId>
+ <version>1.1.2</version>
+ <classifier>rt</classifier>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+ <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>
+ <mainOutputDir>target/classes-jdk14</mainOutputDir>
+ <testOutputDir>target/test-classes-jdk14</testOutputDir>
+ </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>
+ <reportsDirectory>${project.build.directory}/surefire-reports-jdk14</reportsDirectory>
+ <!-- Note: other test cases should be added once the require features are added to jboss-retro -->
+ <includes>
+ <include>**/*SecurityUnitTestCase.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+ <properties>
+ <mainOutputDir>target/classes</mainOutputDir>
+ <testOutputDir>target/test-classes</testOutputDir>
+ </properties>
+
+</project>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list