File: pom-jdk14.xml

package info (click to toggle)
libjboss-integration-java 5.0.0~Beta5-1
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 364 kB
  • ctags: 237
  • sloc: java: 1,114; xml: 896; sh: 12; makefile: 11
file content (144 lines) | stat: -rw-r--r-- 5,317 bytes parent folder | download | duplicates (3)
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
<?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-integration-jdk14</artifactId>
    <version>5.0.0-SNAPSHOT</version>
    <relativePath>../build/pom-jdk14.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jboss</groupId>
  <artifactId>jboss-classloading-spi-jdk14</artifactId>
  <version>5.0.0-SNAPSHOT</version>
  <packaging>jar</packaging>
  <name>JBoss ClassLoading 5.0.0 SPI</name>
  <url>http://www.jboss.org</url>
  <description>The Java ClassLoading 5.0.0 SPI classes</description>
  
  <build>
    <outputDirectory>${outputDirectory}</outputDirectory>
    <testOutputDirectory>${testOutputDirectory}</testOutputDirectory>
    <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 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>
  
  <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>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  
  <dependencies>
    <dependency>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-common-core-jdk14</artifactId>
    </dependency>
  </dependencies>
  
  <properties>
    <outputDirectory>target/classes</outputDirectory>
    <testOutputDirectory>target/test-classes</testOutputDirectory>
  </properties>
    
</project>