POM文件内容: |
<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">
<modelVersion>4.0.0</modelVersion>
<properties>
<jandexVersion>1.2.4.Final</jandexVersion>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<jdk.min.version>1.6</jdk.min.version>
</properties>
<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>12</version>
</parent>
<artifactId>jandex</artifactId>
<version>${jandexVersion}</version>
<name>Java Annotation Indexer</name>
<packaging>bundle</packaging>
<licenses>
<license>
<name>AL 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<mainClass>org.jboss.jandex.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<archive>
<index>true</index>
<manifest>
<mainClass>org.jboss.jandex.Main</mainClass>
</manifest>
</archive>
<instructions>
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${jandexVersion}</Bundle-Version>
<Export-Package>
org.jboss.jandex;version="${jandexVersion}"
</Export-Package>
<Import-Package>
org.apache.tools.ant;resolution:=optional,
org.apache.tools.ant.types;resolution:=optional,
*
</Import-Package>
<!-- Without the -nouses BND directive, the org.jboss.jandex export will get the optional
ant packages in a "uses" clause. -->
<_nouses>true</_nouses>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.8.1</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
</dependencies>
</project>
|