1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
<?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-metatype-jdk14</artifactId>
<packaging>jar</packaging>
<name>JBoss Microcontainer Metatype JDK 1.4</name>
<url>http://www.jboss.com/products/jbossmc</url>
<description>JBoss Microcontainer Metatype</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>
<!-- Global dependencies -->
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-reflect-jdk14</artifactId>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-common-core-jdk14</artifactId>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-test-jdk14</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
|