This is an automated email from the ASF dual-hosted git repository.
robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
The following commit(s) were added to refs/heads/master by this push:
new 1c26a30a16 AXIS2-6105 Remove OSGi bundle packaging from 7 transport
modules
1c26a30a16 is described below
commit 1c26a30a16f176e7e46ba5c1a19effcca83d1c40
Author: Robert Lazarski <[email protected]>
AuthorDate: Tue Apr 21 06:07:38 2026 -1000
AXIS2-6105 Remove OSGi bundle packaging from 7 transport modules
Convert all transport modules from <packaging>bundle</packaging> to
<packaging>jar</packaging> and remove the maven-bundle-plugin
configuration. OSGi missed the Jakarta EE 9+ transition and the
maven-bundle-plugin is no longer actively maintained.
Automatic-Module-Name (AXIS2-6040) is now served via maven-jar-plugin
for all 7 modules, providing stable Java 9+ JPMS module identity:
axis2-transport-base -> org.apache.axis2.transport.base
axis2-transport-local -> org.apache.axis2.transport.local
axis2-transport-tcp -> org.apache.axis2.transport.tcp
axis2-transport-udp -> org.apache.axis2.transport.udp
axis2-transport-jms -> org.apache.axis2.transport.jms
axis2-transport-mail -> org.apache.axis2.transport.mail
axis2-transport-xmpp -> org.apache.axis2.transport.xmpp
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
modules/transport/base/pom.xml | 31 ++++++++++---------------------
modules/transport/jms/pom.xml | 29 +++++++++--------------------
modules/transport/local/pom.xml | 23 ++++++++---------------
modules/transport/mail/pom.xml | 34 ++++++++++++----------------------
modules/transport/tcp/pom.xml | 24 +++++++++---------------
modules/transport/udp/pom.xml | 23 +++++++++--------------
modules/transport/xmpp/pom.xml | 23 +++++++++--------------
7 files changed, 66 insertions(+), 121 deletions(-)
diff --git a/modules/transport/base/pom.xml b/modules/transport/base/pom.xml
index ea54a4a6e3..0179d92fbb 100644
--- a/modules/transport/base/pom.xml
+++ b/modules/transport/base/pom.xml
@@ -30,7 +30,7 @@
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-transport-base</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache Axis2 - Transport - Base</name>
<description>Apache Axis2 - Base Transport</description>
@@ -71,29 +71,18 @@
<build>
<plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
+
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
<configuration>
- <instructions>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
-
<Bundle-Description>${project.description}</Bundle-Description>
-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
-
org.apache.axis2.transport.base.*;-split-package:=merge-last,
-
org.apache.axis2.format.*;-split-package:=merge-last,
- </Export-Package>
- <Import-Package>
- !javax.xml.namespace,
- javax.xml.namespace; version=0.0.0,
- *;resolution:=optional,
- </Import-Package>
- </instructions>
+ <archive>
+ <manifestEntries>
+ <!-- AXIS2-6040: Stable module name for Java 9+
JPMS -->
+
<Automatic-Module-Name>org.apache.axis2.transport.base</Automatic-Module-Name>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
-
</plugins>
</build>
</project>
diff --git a/modules/transport/jms/pom.xml b/modules/transport/jms/pom.xml
index 7338efbcb7..77cadcd192 100644
--- a/modules/transport/jms/pom.xml
+++ b/modules/transport/jms/pom.xml
@@ -30,7 +30,7 @@
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-transport-jms</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache Axis2 - Transport - JMS</name>
<description>Apache Axis2 - JMS Transport</description>
@@ -130,26 +130,15 @@
<argLine>${argLine} -javaagent:${aspectjweaver} -Xms64m
-Xmx128m --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
<configuration>
- <instructions>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
-
<Bundle-Description>${project.description}</Bundle-Description>
-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
-
org.apache.axis2.transport.jms.*;-split-package:=merge-last,
- </Export-Package>
- <Import-Package>
- !javax.xml.namespace,
- javax.xml.namespace; version=0.0.0,
- *; resolution:=optional
- </Import-Package>
- <DynamicImport-Package>*</DynamicImport-Package>
- </instructions>
+ <archive>
+ <manifestEntries>
+ <!-- AXIS2-6040: Stable module name for Java 9+
JPMS -->
+
<Automatic-Module-Name>org.apache.axis2.transport.jms</Automatic-Module-Name>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
</plugins>
diff --git a/modules/transport/local/pom.xml b/modules/transport/local/pom.xml
index 91f768b217..222cde689a 100644
--- a/modules/transport/local/pom.xml
+++ b/modules/transport/local/pom.xml
@@ -30,7 +30,7 @@
</parent>
<artifactId>axis2-transport-local</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache Axis2 - Transport - Local</name>
<description>This inclues all the available transports in
Axis2</description>
@@ -101,21 +101,14 @@
</executions>
</plugin>
<plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
+ <artifactId>maven-jar-plugin</artifactId>
<configuration>
- <instructions>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
-
<Bundle-Description>${project.description}</Bundle-Description>
-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
-
org.apache.axis2.transport.local.*;-split-package:=merge-last,
- </Export-Package>
- <!-- AXIS2-6040: Stable module name for Java 9+ JPMS
-->
-
<Automatic-Module-Name>org.apache.axis2.transport.local</Automatic-Module-Name>
- </instructions>
+ <archive>
+ <manifestEntries>
+ <!-- AXIS2-6040: Stable module name for Java 9+
JPMS -->
+
<Automatic-Module-Name>org.apache.axis2.transport.local</Automatic-Module-Name>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
</plugins>
diff --git a/modules/transport/mail/pom.xml b/modules/transport/mail/pom.xml
index eecae168d8..ab033fae2e 100644
--- a/modules/transport/mail/pom.xml
+++ b/modules/transport/mail/pom.xml
@@ -30,7 +30,7 @@
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-transport-mail</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache Axis2 - Transport - Mail</name>
<description>Apache Axis2 - Mail Transport</description>
@@ -70,27 +70,6 @@
<build>
<plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
-
<Bundle-Description>${project.description}</Bundle-Description>
-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
-
org.apache.axis2.transport.mail.*;-split-package:=merge-last,
- </Export-Package>
- <Import-Package>
- !javax.xml.namespace,
- javax.xml.namespace; version=0.0.0,
- *; resolution:=optional
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
<plugin>
<groupId>com.github.veithen.alta</groupId>
<artifactId>alta-maven-plugin</artifactId>
@@ -121,6 +100,17 @@
<configuration>
<argLine>${argLine} -javaagent:${aspectjweaver} -Xms64m
-Xmx128m</argLine>
</configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <!-- AXIS2-6040: Stable module name for Java 9+
JPMS -->
+
<Automatic-Module-Name>org.apache.axis2.transport.mail</Automatic-Module-Name>
+ </manifestEntries>
+ </archive>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/modules/transport/tcp/pom.xml b/modules/transport/tcp/pom.xml
index 572e52e1c6..041361f78d 100644
--- a/modules/transport/tcp/pom.xml
+++ b/modules/transport/tcp/pom.xml
@@ -30,7 +30,7 @@
</parent>
<artifactId>axis2-transport-tcp</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache Axis2 - Transport - TCP</name>
<description>This inclues all the available transports in
Axis2</description>
@@ -116,21 +116,15 @@
<configurationDirectory>conf</configurationDirectory>
</configuration>
</plugin>
-
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
<configuration>
- <instructions>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
-
<Bundle-Description>${project.description}</Bundle-Description>
-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
-
org.apache.axis2.transport.tcp.*;-split-package:=merge-last,
- </Export-Package>
- </instructions>
+ <archive>
+ <manifestEntries>
+ <!-- AXIS2-6040: Stable module name for Java 9+
JPMS -->
+
<Automatic-Module-Name>org.apache.axis2.transport.tcp</Automatic-Module-Name>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
</plugins>
diff --git a/modules/transport/udp/pom.xml b/modules/transport/udp/pom.xml
index 88fd496b28..9a7de16d78 100644
--- a/modules/transport/udp/pom.xml
+++ b/modules/transport/udp/pom.xml
@@ -30,7 +30,7 @@
</parent>
<artifactId>axis2-transport-udp</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache Axis2 - Transport - UDP</name>
<description>UDP transport for Axis2</description>
@@ -63,20 +63,15 @@
<build>
<plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
<configuration>
- <instructions>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
-
<Bundle-Description>${project.description}</Bundle-Description>
-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
-
org.apache.axis2.transport.udp.*;-split-package:=merge-last,
- </Export-Package>
- </instructions>
+ <archive>
+ <manifestEntries>
+ <!-- AXIS2-6040: Stable module name for Java 9+
JPMS -->
+
<Automatic-Module-Name>org.apache.axis2.transport.udp</Automatic-Module-Name>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
</plugins>
diff --git a/modules/transport/xmpp/pom.xml b/modules/transport/xmpp/pom.xml
index 520f76d645..4f8119af4c 100644
--- a/modules/transport/xmpp/pom.xml
+++ b/modules/transport/xmpp/pom.xml
@@ -30,7 +30,7 @@
</parent>
<artifactId>axis2-transport-xmpp</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache Axis2 - Transport - XMPP</name>
<description>This inclues all the available transports in Axis2
</description>
@@ -91,20 +91,15 @@
</resource>
</resources>
<plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
<configuration>
- <instructions>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
-
<Bundle-Description>${project.description}</Bundle-Description>
-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
-
org.apache.axis2.transport.xmpp.*;-split-package:=merge-last,
- </Export-Package>
- </instructions>
+ <archive>
+ <manifestEntries>
+ <!-- AXIS2-6040: Stable module name for Java 9+
JPMS -->
+
<Automatic-Module-Name>org.apache.axis2.transport.xmpp</Automatic-Module-Name>
+ </manifestEntries>
+ </archive>
</configuration>
</plugin>
</plugins>