|
|
|
DWoods
|
Author: dwoods
Date: Wed Nov 4 19:33:57 2009 New Revision: 832854 URL: http://svn.apache.org/viewvc?rev=832854&view=rev Log: OPENJPA-839 fix pom data so unprovided depends will be pulled automatically by maven Modified: openjpa/branches/1.3.x/openjpa-all/pom.xml openjpa/branches/1.3.x/openjpa-jdbc/pom.xml openjpa/branches/1.3.x/openjpa/pom.xml Modified: openjpa/branches/1.3.x/openjpa-all/pom.xml URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-all/pom.xml?rev=832854&r1=832853&r2=832854&view=diff ============================================================================== --- openjpa/branches/1.3.x/openjpa-all/pom.xml (original) +++ openjpa/branches/1.3.x/openjpa-all/pom.xml Wed Nov 4 19:33:57 2009 @@ -62,6 +62,7 @@ <createDependencyReducedPom>true</createDependencyReducedPom> <createSourcesJar>true</createSourcesJar> <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope> + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> <!-- Have to do this again here, as these settings from shaded openjpa.jar get lost in the shading @@ -97,47 +98,47 @@ <dependencies> <!-- - Only include openjpa.jar and its required dependencies here, which - will be used by maven-shade-plugin to determine the inclusions. + Only include openjpa.jar here, as the maven-shade-plugin will + determine the transitive dependencies to include from it. --> <dependency> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa</artifactId> <version>${pom.version}</version> </dependency> - - <!-- Non-OpenJPA JARs to pull in --> - <dependency> - <groupId>net.sourceforge.serp</groupId> - <artifactId>serp</artifactId> - </dependency> - <dependency> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </dependency> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - </dependency> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - </dependency> - <dependency> - <groupId>commons-pool</groupId> - <artifactId>commons-pool</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_1.1_spec</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jta_1.1_spec</artifactId> - </dependency> + <!-- Need to manually add back optional openjpa-jdbc depends --> <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jpa_1.0_spec</artifactId> + <groupId>javax.xml.bind</groupId> + <artifactId>jaxb-api</artifactId> + <scope>compile</scope> + <optional>true</optional> + <exclusions> + <exclusion> + <groupId>javax.xml.bind</groupId> + <artifactId>jsr173_api</artifactId> + </exclusion> + <exclusion> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>com.sun.xml.bind</groupId> + <artifactId>jaxb-impl</artifactId> + <scope>compile</scope> + <optional>true</optional> + <exclusions> + <exclusion> + <groupId>javax.xml.bind</groupId> + <artifactId>jsr173_api</artifactId> + </exclusion> + <exclusion> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + </exclusion> + </exclusions> </dependency> + <!-- end optional openjpa-jdbc depends --> </dependencies> </project> Modified: openjpa/branches/1.3.x/openjpa-jdbc/pom.xml URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-jdbc/pom.xml?rev=832854&r1=832853&r2=832854&view=diff ============================================================================== --- openjpa/branches/1.3.x/openjpa-jdbc/pom.xml (original) +++ openjpa/branches/1.3.x/openjpa-jdbc/pom.xml Wed Nov 4 19:33:57 2009 @@ -42,10 +42,14 @@ <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> + <scope>compile</scope> + <optional>true</optional> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> + <scope>compile</scope> + <optional>true</optional> </dependency> <dependency> <groupId>hsqldb</groupId> Modified: openjpa/branches/1.3.x/openjpa/pom.xml URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa/pom.xml?rev=832854&r1=832853&r2=832854&view=diff ============================================================================== --- openjpa/branches/1.3.x/openjpa/pom.xml (original) +++ openjpa/branches/1.3.x/openjpa/pom.xml Wed Nov 4 19:33:57 2009 @@ -62,6 +62,23 @@ <createDependencyReducedPom>true</createDependencyReducedPom> <createSourcesJar>true</createSourcesJar> <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope> + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> + <!-- + Specify a subset of depends to include, + which must match the <dependencies> section. + --> + <artifactSet> + <includes> + <include>org.apache.openjpa:openjpa-lib</include> + <include>org.apache.openjpa:openjpa-kernel</include> + <include>org.apache.openjpa:openjpa-jdbc</include> + <include>org.apache.openjpa:openjpa-persistence</include> + <include>org.apache.openjpa:openjpa-persistence-jdbc</include> + <include>org.apache.openjpa:openjpa-xmlstore</include> + <include>org.apache.openjpa:openjpa-slice</include> + </includes> + </artifactSet> + <!-- OpenJPA unique META-INF setup --> <transformers> <!-- Need to concatinate the services resources: org.apache.openjpa.lib.conf.ProductDerivation @@ -108,13 +125,12 @@ <artifactId>openjpa-jdbc</artifactId> <version>${pom.version}</version> <!-- - Need to exclude jaxb depends, so the following will not - get included in the aggregate JAR by the shade plugin: + Need to exclude jaxb, so the following will not get included + as compile depends in the aggregate JAR by the shade plugin: javax.xml.bind:jaxb-api:jar:2.0 javax.xml.bind:jsr173_api:jar:1.0 javax.activation:activation:jar:1.1 com.sun.xml.bind:jaxb-impl:jar:2.0.5 - --> <exclusions> <exclusion> <groupId>javax.xml.bind</groupId> @@ -125,7 +141,42 @@ <artifactId>jaxb-impl</artifactId> </exclusion> </exclusions> + --> </dependency> + <!-- Need to manually add back optional openjpa-jdbc depends --> + <dependency> + <groupId>javax.xml.bind</groupId> + <artifactId>jaxb-api</artifactId> + <scope>compile</scope> + <optional>true</optional> + <exclusions> + <exclusion> + <groupId>javax.xml.bind</groupId> + <artifactId>jsr173_api</artifactId> + </exclusion> + <exclusion> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>com.sun.xml.bind</groupId> + <artifactId>jaxb-impl</artifactId> + <scope>compile</scope> + <optional>true</optional> + <exclusions> + <exclusion> + <groupId>javax.xml.bind</groupId> + <artifactId>jsr173_api</artifactId> + </exclusion> + <exclusion> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + </exclusion> + </exclusions> + </dependency> + <!-- end optional openjpa-jdbc depends --> <dependency> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-persistence</artifactId> @@ -146,47 +197,5 @@ <artifactId>openjpa-slice</artifactId> <version>${pom.version}</version> </dependency> - - <!-- JARs NOT included in aggregate JAR via maven-shade-plugin --> - <dependency> - <groupId>net.sourceforge.serp</groupId> - <artifactId>serp</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>commons-pool</groupId> - <artifactId>commons-pool</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_1.1_spec</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jta_1.1_spec</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jpa_1.0_spec</artifactId> - <scope>provided</scope> - </dependency> </dependencies> </project> |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |