209 lines
8.4 KiB
Plaintext
209 lines
8.4 KiB
Plaintext
<!--
|
|
~ JBoss, Home of Professional Open Source.
|
|
~ Copyright 2014 Red Hat, Inc., and individual contributors
|
|
~ as indicated by the @author tags.
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<name>JBoss Marshalling API</name>
|
|
<description>JBoss Marshalling API</description>
|
|
<artifactId>jboss-marshalling</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<parent>
|
|
<groupId>org.jboss.marshalling</groupId>
|
|
<artifactId>jboss-marshalling-parent</artifactId>
|
|
<version>2.0.11.Final</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<jdk.min.version>9</jdk.min.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jboss.modules</groupId>
|
|
<artifactId>jboss-modules</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testng</groupId>
|
|
<artifactId>testng</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>java8-test-profile</id>
|
|
<activation>
|
|
<property>
|
|
<name>java8.home</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>java8-test</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>test</goal>
|
|
</goals>
|
|
<configuration>
|
|
<jvm>${java8.home}/bin/java</jvm>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/java</directory>
|
|
<includes>
|
|
<include>**/Version.properties</include>
|
|
</includes>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
<resource>
|
|
<directory>target/generated-resources</directory>
|
|
<filtering>false</filtering>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>default-compile</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<release>8</release>
|
|
<buildDirectory>${project.build.directory}</buildDirectory>
|
|
<compileSourceRoots>${project.compileSourceRoots}</compileSourceRoots>
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
<additionalClasspathElements>
|
|
<additionalClasspathElement>${project.build.directory}/jdk-misc.jar</additionalClasspathElement>
|
|
</additionalClasspathElements>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>compile-java9</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<release>9</release>
|
|
<buildDirectory>${project.build.directory}</buildDirectory>
|
|
<compileSourceRoots>${project.basedir}/src/main/java9</compileSourceRoots>
|
|
<outputDirectory>${project.build.directory}/classes/META-INF/versions/9</outputDirectory>
|
|
<additionalClasspathElements>
|
|
<additionalClasspathElement>${project.build.outputDirectory}</additionalClasspathElement>
|
|
</additionalClasspathElements>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>fetch-misc</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>get</goal>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifact>org.jboss:jdk-misc:1.Final</artifact>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
<stripVersion>true</stripVersion>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- JAR -->
|
|
<plugin>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>org.jboss.marshalling.Version</mainClass>
|
|
</manifest>
|
|
<manifestEntries>
|
|
<Multi-Release>true</Multi-Release>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
|
<trimStackTrace>false</trimStackTrace>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>default-test</id>
|
|
<configuration>
|
|
<classesDirectory>${project.build.directory}/classes/META-INF/versions/9</classesDirectory>
|
|
<additionalClasspathElements>
|
|
<additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
|
|
</additionalClasspathElements>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-java8-tests</id>
|
|
<phase>deploy</phase>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireProperty>
|
|
<property>java8.home</property>
|
|
<message>The "java8.home" property must be set on deploy to run tests under Java 8</message>
|
|
</requireProperty>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|