You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ro...@apache.org on 2026/04/20 22:46:01 UTC
(axis-axis2-java-core) 02/04: AXIS2-6040 Remove global Automatic-Module-Name — hyphens in artifactIds are invalid
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
commit 09bb62172d8685b6d5a3ca888b8ea79e59c2c997
Author: Robert Lazarski <ro...@gmail.com>
AuthorDate: Mon Apr 20 11:58:42 2026 -1000
AXIS2-6040 Remove global Automatic-Module-Name — hyphens in artifactIds are invalid
The global maven-jar-plugin config set Automatic-Module-Name to
${project.groupId}.${project.artifactId}, but artifact IDs containing
hyphens (e.g., axis2-resource-bundle) produce invalid Java module names.
This broke the build on all modules.
Remove the global config. Modules that need stable JPMS names can
define Automatic-Module-Name in their individual pom.xml.
---
pom.xml | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/pom.xml b/pom.xml
index 47a4600e49..74a43952cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1046,16 +1046,10 @@
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.0</version>
- <configuration>
- <archive>
- <manifestEntries>
- <!-- AXIS2-6040: Stable module name for Java 9+ module system.
- Without this, the module name is derived from the JAR filename
- and changes with version numbers, producing IDE warnings. -->
- <Automatic-Module-Name>${project.groupId}.${project.artifactId}</Automatic-Module-Name>
- </manifestEntries>
- </archive>
- </configuration>
+ <!-- AXIS2-6040: Automatic-Module-Name removed from global config.
+ Hyphens in artifactIds (e.g., axis2-resource-bundle) produce
+ invalid Java module names. Modules that need stable JPMS names
+ should define Automatic-Module-Name in their own pom.xml. -->
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>