eclipselink-persistence-api/eclipse-javax.persistence-template.pom.xml
2020-02-28 17:09:41 +08:00

142 lines
7.7 KiB
XML

<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>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>@VERSION@</version>
<packaging>jar</packaging>
<name>EclipseLink Java Persistence API</name>
<description>EclipseLink Javax Persistence API v@API_VERSION@</description>
<url>http://www.eclipse.org/eclipselink</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>3.6.0.v20100517</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>${basedir}/src</sourceDirectory>
<resources>
<resource>
<directory>${basedir}/resource</directory>
<includes>
<include>**/*.html</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src</directory>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/.*</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/src</directory>
<includes>
<include>**/packageinfo</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<!-- add the generated manifest to the archive -->
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<nodeprecated>false</nodeprecated>
<use>false</use>
<author>true</author>
<version>true</version>
<doctitle><![CDATA[<h1>Java Persistence API @API_VERSION@</h1>]]>
</doctitle>
<header><![CDATA[${project.description}]]>
</header>
<bottom><![CDATA[<font size=-1>
<p>Copyright &copy; Eclipse.org - EclipseLink Project (2000, 2014). All Rights Reserved. Licensed under the Eclipse Public License v1.0.</font>]]>
</bottom>
<detectJavaApiLink>false</detectJavaApiLink>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<instructions>
<Bundle-Activator>org.eclipse.persistence.javax.persistence.osgi.Activator</Bundle-Activator>
<Bundle-ClassPath>.</Bundle-ClassPath>
<Bundle-Name>Java Persistence API @API_VERSION@</Bundle-Name>
<Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
<Bundle-SymbolicName>javax.persistence</Bundle-SymbolicName>
<Bundle-Vendor>Eclipse.org - EclipseLink Project</Bundle-Vendor>
<Bundle-Version>${project.version}</Bundle-Version>
<Extension-Name>javax.persistence</Extension-Name>
<Export-Package>javax.persistence,
javax.persistence.spi,
javax.persistence.criteria,
javax.persistence.metamodel</Export-Package>
<Import-Package>javax.sql;resolution:=optional,
org.osgi.framework;resolution:=optional,
org.osgi.service.jpa</Import-Package>
<Private-Package>.,org.eclipse.persistence.javax.persistence.osgi</Private-Package>
<Implementation-Vendor>Eclipse.org - EclipseLink Project</Implementation-Vendor>
<Implementation-Version>@IMPL_VERSION@</Implementation-Version>
<Specification-Vendor>Oracle</Specification-Vendor>
<Specification-Version>@API_VERSION@</Specification-Version>
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>