| POM文件内容: |
<!--
~ 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.2.Final</version>
</parent>
<dependencies>
<dependency>
<groupId>org.jboss.marshalling</groupId>
<artifactId>jboss-marshalling-jdk9-supplement</artifactId>
<version>1.0.1.Final</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.jboss.marshalling</groupId>
<artifactId>jboss-marshalling</artifactId>
</exclusion>
</exclusions>
</dependency>
<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>
<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>
<!-- Remote resources -->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>add-java9-supplement</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>org.jboss.marshalling</includeGroupIds>
<includeArtifactIds>jboss-marshalling-jdk9-supplement</includeArtifactIds>
<excludeTransitive>true</excludeTransitive>
<includes>**/*.class</includes>
<outputDirectory>${project.build.directory}/generated-resources/META-INF/versions/9</outputDirectory>
</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>
</plugins>
</build>
</project>
|