POM文件内容: |
<?xml version="1.0" encoding="UTF-8"?>
<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>
<artifactId>quartz-parent</artifactId>
<groupId>org.quartz-scheduler</groupId>
<version>2.3.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>quartz</artifactId>
<name>quartz</name>
<description>Enterprise Job Scheduler</description>
<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<License>Apache Software License, Version 2.0</License>
<Terracotta-ProjectStatus>Supported</Terracotta-ProjectStatus>
<Terracotta-Name>${project.artifactId}</Terracotta-Name>
<Terracotta-Description>${project.description}</Terracotta-Description>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<executions>
<execution>
<id>create-javadoc</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipJavadoc}</skip>
<quiet>true</quiet>
<doctitle>Quartz Enterprise Job Scheduler ${project.version} API</doctitle>
<windowtitle>Quartz Enterprise Job Scheduler ${project.version} API</windowtitle>
<bottom>Copyright 2001-{currentYear}, Terracotta, Inc.</bottom>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>org.quartz-scheduler.internal:*</dependencySourceInclude>
<dependencySourceInclude>org.quartz-scheduler:quartz-jobs</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>shade-jar</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactSet>
<includes>
<include>org.quartz-scheduler.internal:*</include>
</includes>
<excludes>
<exclude>*:quartz-stubs:*</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>**/META-INF/maven/org.quartz-scheduler.internal/**</exclude>
<exclude>**/license.txt</exclude>
<exclude>**/thirdpartylicenses.txt</exclude>
</excludes>
</filter>
</filters>
<createSourcesJar>true</createSourcesJar>
<useBaseVersion>true</useBaseVersion>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<transformers>
<transformer>
<resource>MANIFEST.MF</resource>
</transformer>
<transformer>
<resource>META-INF/MANIFEST.MF</resource>
<file>${project.build.directory}/MANIFEST.MF</file>
</transformer>
</transformers>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>unpack-jar-for-bundling</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<unzip />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<executions>
<execution>
<id>generate-osgi-headers</id>
<phase>package</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<manifestLocation>${project.build.directory}</manifestLocation>
<instructions>
<Import-Package>javax.servlet;resolution:=optional,
javax.servlet.http;resolution:=optional,
javax.sql;resolution:=optional,
javax.mail;resolution:=optional,
javax.mail.internet;resolution:=optional,
javax.transaction;resolution:=optional,
javax.ejb;resolution:=optional,
javax.jms;resolution:=optional,
org.terracotta.toolkit.*;resolution:=optional,
weblogic.jdbc.*;resolution:=optional,
oracle.sql;resolution:=optional,
org.jboss.logging;resolution:=optional,
org.jboss.naming;resolution:=optional,
org.jboss.system;resolution:=optional,
commonj.work;resolution:=optional,
org.quartz.jobs;resolution:=optional,*</Import-Package>
<Export-Package>org.quartz.*</Export-Package>
<Private-Package>org.terracotta.quartz.*</Private-Package>
<Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
</instructions>
<excludeDependencies>*;scope=provided|runtime</excludeDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>${gmaven-plugin.version}</version>
<executions>
<execution>
<id>repackage-jar</id>
<phase>package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>println "repackaging the jar"
def jarFile = new File(project.build.directory, "${project.artifactId}-${project.version}.jar")
ant.copy(file: new File(project.build.directory, "dependency-reduced-pom.xml"),
tofile: new File(project.build.outputDirectory, "META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml"))
ant.jar(destfile: jarFile, basedir: new File(project.build.outputDirectory).getAbsolutePath(), manifest: new File(project.build.directory, "MANIFEST.MF"))</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>terracotta-snapshots</id>
<url>http://www.terracotta.org/download/reflector/snapshots</url>
</repository>
<repository>
<id>terracotta-releases</id>
<url>http://www.terracotta.org/download/reflector/releases</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>terracotta-snapshots</id>
<url>http://www.terracotta.org/download/reflector/snapshots</url>
</pluginRepository>
<pluginRepository>
<id>terracotta-releases</id>
<url>http://www.terracotta.org/download/reflector/releases</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>mchange-commons-java</artifactId>
<version>0.2.15</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP-java7</artifactId>
<version>2.4.13</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.7</version>
<scope>compile</scope>
</dependency>
</dependencies>
<properties>
<gmaven-plugin.version>1.4</gmaven-plugin.version>
</properties>
</project>
|