File: pom-jdk14.xml

package info (click to toggle)
libjboss-microcontainer-java 2.0.0~Beta16-1
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 15,416 kB
  • ctags: 14,841
  • sloc: java: 88,790; xml: 25,482; makefile: 19; sh: 14
file content (239 lines) | stat: -rw-r--r-- 8,604 bytes parent folder | download
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<?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-kernel-jdk14</artifactId>
  <packaging>jar</packaging>
  <name>JBoss Microcontainer Kernel JDK 1.4</name>
  <url>http://www.jboss.com/products/jbossmc</url>
  <description>JBoss Microcontainer Kernel</description>  
  <build>
    <resources>
      <resource>
        <directory>src/resources/main</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>src/resources/tests</directory>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <showDeprecation>false</showDeprecation>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
          <includes>
            <include>org/jboss/test/**/*TestCase.java</include>
          </includes>
          <excludes>
            <exclude>org/jboss/test/**/NoJavassistAnnotationCreatorTestCase.java</exclude>
            <exclude>org/jboss/test/**/*JaxbTestCase.java</exclude>
          </excludes>
          <useSystemClassLoader>true</useSystemClassLoader>
        </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>
        <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>true</redirectTestOutputToFile> 
              <testFailureIgnore>true</testFailureIgnore>  
              <useSystemClassLoader>true</useSystemClassLoader>    
              <reportsDirectory>${project.build.directory}/surefire-reports-jdk14</reportsDirectory>
              <includes>
                <include>**/*TestCase.java</include>
              </includes>
              <excludes>
                <exclude>**/CallbackCollectionAnnotationTestCase.java</exclude>
                <exclude>**/CallbackAnnotationTestCase.java</exclude>
              </excludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.jboss</groupId>
        <artifactId>jboss-test-jdk14</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>
    <!-- Global dependencies -->
    <dependency>
      <groupId>org.jboss.microcontainer-jdk14</groupId>
      <artifactId>jboss-dependency-jdk14</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-test-jdk14</artifactId>
    </dependency>
    <dependency>
      <groupId>jboss</groupId>
      <artifactId>jbossxb</artifactId>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-common-logging-spi-jdk14</artifactId>
    </dependency>
    <!-- Test dependencies -->
    <!-- None -->
    
    <!-- Runtime dependencies -->
    <dependency>
      <groupId>jboss</groupId>
      <artifactId>jboss-backport-concurrent</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>javax.management</groupId>
      <artifactId>jmxri</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-retro</artifactId>
      <classifier>rt</classifier>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
</project>