You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by so...@apache.org on 2021/12/17 10:37:59 UTC
[openjpa] 01/01: [OPENJPA-2896] automatic module name is set for bundles
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch OPENJPA-2896-module-name
in repository https://gitbox.apache.org/repos/asf/openjpa.git
commit ea80ce497b6239919a7686910a01c97825f4fed3
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Fri Dec 17 17:37:43 2021 +0700
[OPENJPA-2896] automatic module name is set for bundles
---
openjpa-all/pom.xml | 1 +
openjpa/pom.xml | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/openjpa-all/pom.xml b/openjpa-all/pom.xml
index 26974e5..f75f669 100644
--- a/openjpa-all/pom.xml
+++ b/openjpa-all/pom.xml
@@ -110,6 +110,7 @@
<Specification-Title>JSR-338 Java Persistence</Specification-Title>
<Specification-Vendor>ORACLE, Inc.</Specification-Vendor>
<Specification-Version>2.2</Specification-Version>
+ <Automatic-Module-Name>org.apache.openjpa.all</Automatic-Module-Name>
</manifestEntries>
</transformer>
</transformers>
diff --git a/openjpa/pom.xml b/openjpa/pom.xml
index 3df7d46..3558491 100644
--- a/openjpa/pom.xml
+++ b/openjpa/pom.xml
@@ -109,6 +109,12 @@
<createSourcesJar>${createSources}</createSourcesJar>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
+ <!-- Need to add some MANIFEST.MF metadata -->
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <manifestEntries>
+ <Automatic-Module-Name>org.apache.openjpa.jakarta</Automatic-Module-Name>
+ </manifestEntries>
+ </transformer>
</transformers>
<artifactSet>
<includes>
@@ -223,6 +229,7 @@
<Specification-Title>JSR-338 Java Persistence</Specification-Title>
<Specification-Vendor>ORACLE, Inc.</Specification-Vendor>
<Specification-Version>2.2</Specification-Version>
+ <Automatic-Module-Name>org.apache.openjpa</Automatic-Module-Name>
<!-- OSGi Bundle Metadata -->
<Bundle-DocURL>${project.url}</Bundle-DocURL>
<Bundle-Activator>org.apache.openjpa.persistence.osgi.PersistenceActivator</Bundle-Activator>