2006-09-07 21:24:18 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-11-12 06:44:59 -05:00
|
|
|
<!--
|
2007-04-14 17:50:17 -04:00
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you 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
|
2006-11-12 06:44:59 -05:00
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
2007-04-14 17:50:17 -04:00
|
|
|
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.
|
2006-11-12 06:44:59 -05:00
|
|
|
-->
|
2008-06-11 12:48:56 -04:00
|
|
|
<!--
|
|
|
|
Please keep the project tag on one line to avoid confusing
|
|
|
|
the release plugin.
|
|
|
|
-->
|
|
|
|
<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">
|
2006-09-07 21:24:18 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2009-05-11 11:21:52 -04:00
|
|
|
<artifactId>openjpa-all</artifactId>
|
2006-09-07 21:24:18 -04:00
|
|
|
<packaging>jar</packaging>
|
2009-05-14 14:42:17 -04:00
|
|
|
<name>OpenJPA Aggregate Jar with Dependencies</name>
|
2006-09-07 21:24:18 -04:00
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2007-05-09 18:23:54 -04:00
|
|
|
<artifactId>openjpa-parent</artifactId>
|
2010-03-22 22:27:40 -04:00
|
|
|
<version>2.1.0-SNAPSHOT</version>
|
2006-09-07 21:24:18 -04:00
|
|
|
</parent>
|
2007-05-29 13:27:46 -04:00
|
|
|
|
2006-09-07 21:24:18 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
2009-10-28 10:45:15 -04:00
|
|
|
<!--
|
|
|
|
Need to disable source plugin here, as it overwrites the shade
|
|
|
|
plugin created sources jar.
|
|
|
|
-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<phase>none</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<!-- Create our aggregate all JAR -->
|
2009-05-11 11:21:52 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
2009-05-20 16:42:47 -04:00
|
|
|
<configuration>
|
|
|
|
<createDependencyReducedPom>true</createDependencyReducedPom>
|
2009-10-22 14:51:52 -04:00
|
|
|
<createSourcesJar>true</createSourcesJar>
|
2009-05-20 16:42:47 -04:00
|
|
|
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
|
2009-11-04 16:35:07 -05:00
|
|
|
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
2009-10-28 10:45:15 -04:00
|
|
|
<!--
|
|
|
|
Have to do this again here, as these settings
|
|
|
|
from shaded openjpa.jar get lost in the shading
|
|
|
|
-->
|
2009-05-27 10:43:00 -04:00
|
|
|
<transformers>
|
2009-10-28 10:45:15 -04:00
|
|
|
<!-- Need to concatinate the services resources:
|
|
|
|
org.apache.openjpa.lib.conf.ProductDerivation
|
|
|
|
javax.persistence.spi.PersistenceProvider
|
|
|
|
org.apache.openjpa.kernel.exps.ExpressionParser
|
|
|
|
-->
|
2010-02-24 16:04:42 -05:00
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
2009-10-28 10:45:15 -04:00
|
|
|
<!-- Need to add some MANIFEST.MF metadata -->
|
2009-05-27 10:43:00 -04:00
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
|
<manifestEntries>
|
|
|
|
<Main-Class>org.apache.openjpa.conf.OpenJPAVersion</Main-Class>
|
|
|
|
<Premain-Class>org.apache.openjpa.enhance.PCEnhancerAgent</Premain-Class>
|
2009-06-19 11:43:46 -04:00
|
|
|
<Agent-Class>org.apache.openjpa.enhance.InstrumentationFactory</Agent-Class>
|
2009-05-27 10:43:00 -04:00
|
|
|
<Can-Redefine-Classes>true</Can-Redefine-Classes>
|
2009-10-28 10:45:15 -04:00
|
|
|
<Can-Retransform-Classes>true</Can-Retransform-Classes>
|
|
|
|
<Implementation-Title>Apache OpenJPA Aggregate JAR with dependencies</Implementation-Title>
|
2009-05-27 10:43:00 -04:00
|
|
|
<Specification-Title>JSR-317 Java Persistence</Specification-Title>
|
|
|
|
<Specification-Vendor>Sun Microsystems, Inc.</Specification-Vendor>
|
|
|
|
<Specification-Version>2.0</Specification-Version>
|
|
|
|
</manifestEntries>
|
|
|
|
</transformer>
|
|
|
|
</transformers>
|
2009-05-20 16:42:47 -04:00
|
|
|
</configuration>
|
2009-05-11 11:21:52 -04:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2006-09-07 21:24:18 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2009-10-28 10:45:15 -04:00
|
|
|
|
2006-09-07 21:24:18 -04:00
|
|
|
<dependencies>
|
2009-05-27 10:43:00 -04:00
|
|
|
<!--
|
2009-11-04 16:35:07 -05:00
|
|
|
Only include openjpa.jar here, as the maven-shade-plugin will
|
|
|
|
determine the transitive dependencies to include from it.
|
2009-05-27 10:43:00 -04:00
|
|
|
-->
|
2007-09-18 10:03:14 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2009-05-11 11:21:52 -04:00
|
|
|
<artifactId>openjpa</artifactId>
|
2007-09-18 10:03:14 -04:00
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
2006-09-07 21:24:18 -04:00
|
|
|
</dependencies>
|
|
|
|
</project>
|