POM文件内容: |
<?xml version="1.0"?>
<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>
<parent>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-root</artifactId>
<version>2.7.1</version>
<relativePath>..</relativePath>
</parent>
<artifactId>ehcache</artifactId>
<packaging>${packagingType}</packaging>
<name>ehcache</name>
<description>Ehcache is an open source, standards-based cache used to boost performance,
offload the database and simplify scalability. Ehcache is robust, proven and full-featured and
this has made it the most widely-used Java-based cache.</description>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>src/assemble/EHCACHE-CORE-LICENSE.txt</url>
</license>
</licenses>
<url>http://ehcache.org</url>
<properties>
<kit.name>${project.artifactId}-${project.version}-distribution</kit.name>
<root.dir>${project.build.directory}/${kit.name}</root.dir>
<terracotta.kit.path>${project.build.directory}/tmp/terracotta</terracotta.kit.path>
<gmaven-plugin.version>1.4</gmaven-plugin.version>
<skipJavadoc>false</skipJavadoc>
<packagingType>jar</packagingType>
<devmode>true</devmode>
</properties>
<dependencies>
<!-- internal components used for shading which will be removed in final
pom -->
<dependency>
<groupId>net.sf.ehcache.internal</groupId>
<artifactId>ehcache-terracotta-bootstrap</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache.internal</groupId>
<artifactId>ehcache-rest-agent</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache.internal</groupId>
<artifactId>ehcache-core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-TIMs</id>
<configuration>
<includeGroupIds>org.terracotta.modules</includeGroupIds>
<outputDirectory>${project.build.outputDirectory}/META-INF/terracotta/TIMs</outputDirectory>
<excludes>**/META-INF/maven/**,**/license.txt,**/thirdpartylicenses.txt</excludes>
</configuration>
<phase>process-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
<execution>
<id>copy-sources</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>net.sf.ehcache.internal</groupId>
<artifactId>ehcache-core</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
<overWrite>true</overWrite>
<destFileName>${project.artifactId}-${project.version}-sources.jar</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-javadoc</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<skip>${skipJavadoc}</skip>
<artifactItems>
<artifactItem>
<groupId>net.sf.ehcache.internal</groupId>
<artifactId>ehcache-core</artifactId>
<version>${project.version}</version>
<classifier>javadoc</classifier>
<overWrite>true</overWrite>
<destFileName>${project.artifactId}-${project.version}-javadoc.jar</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-javadoc</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<skipAttach>${skipJavadoc}</skipAttach>
<artifacts>
<!-- sources artifact attached by default -->
<artifact>
<file>${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>unjar-classes</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.terracotta</groupId>
<artifactId>maven-forge-plugin</artifactId>
<executions>
<execution>
<id>create-manifest</id>
<phase>package</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<rootPath>${basedir}/..</rootPath>
<manifestFile>${project.build.directory}/MANIFEST.MF</manifestFile>
<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>
</configuration>
</execution>
<execution>
<id>enforce-dependencies</id>
<goals>
<goal>enforceDependencies</goal>
</goals>
<phase>verify</phase>
<configuration>
<enforceGroupId>net.sf.ehcache.internal</enforceGroupId>
<enforceArtifactId>ehcache-core</enforceArtifactId>
<enforceVersion>${project.version}</enforceVersion>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.6,)</versionRange>
<goals>
<goal>list</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>devmode</id>
<activation>
<property>
<name>devmode</name>
<value>true</value>
</property>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>list-dependencies</id>
<configuration>
<outputFile>${project.build.outputDirectory}/META-INF/devmode/${project.groupId}/${project.artifactId}/dependencies.txt</outputFile>
</configuration>
<goals>
<goal>list</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>fullmode</id>
<activation>
<property>
<name>devmode</name>
<value>false</value>
</property>
</activation>
<properties>
<packagingType>bundle</packagingType>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<manifestLocation>${project.build.directory}</manifestLocation>
<instructions>
<Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-SymbolicName>${project.groupId}</Bundle-SymbolicName>
<Import-Package>bitronix.tm;resolution:=optional,
bitronix.tm.resource.ehcache;resolution:=optional,
com.atomikos.*;resolution:=optional,
com.atomikos.icatch.jta;resolution:=optional,
weblogic.transaction;resolution:=optional,
javax.transaction;resolution:=optional,
javax.servlet;resolution:=optional,
javax.net.ssl;resolution:=optional,
org.hibernate.*;resolution:=optional,
org.terracotta.toolkit.*;resolution:=optional,
!sun.misc,*
</Import-Package>
<Export-Package>net.sf.ehcache.*</Export-Package>
<Private-Package>org.terracotta.*</Private-Package>
<Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
</instructions>
<excludeDependencies>*;scope=provided|runtime</excludeDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<useBaseVersion>true</useBaseVersion>
<artifactSet>
<includes>
<include>net.sf.ehcache.internal:*</include>
<include>org.terracotta.internal:statistics</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>**/META-INF/maven/net.sf.ehcache.internal/**</exclude>
<exclude>**/license.txt</exclude>
<exclude>**/thirdpartylicenses.txt</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resource>MANIFEST.MF</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
<resource>META-INF/MANIFEST.MF</resource>
<file>${project.build.directory}/MANIFEST.MF</file>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<id>shade-jar</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<id>inject-correct-pom-to-jar</id>
<phase>package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
def jarFile = new File(project.build.directory,
"${project.artifactId}-${project.version}.jar")
ant.jar(destfile: jarFile, update: "true") {
zipfileset(file: new File(project.build.directory,
"dependency-reduced-pom.xml"),
fullpath:
"META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml")
}
</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<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>
<issueManagement>
<system>JIRA</system>
<url>https://jira.terracotta.org/jira/browse/EHC</url>
</issueManagement>
</project>
|