In my project I am making use of Weld SE CDI via the weld-se-shaded
dependency. When I build the project, I get the following warning from Maven:
Required filename-based automodules detected: [weld-se-shaded-5.1.2.Final.jar]. Please don't publish this project to a public artifact repository!
From my understanding, this warning shows up because the weld-se-shaded
jar does not define a module-info
or the Automatic-Module-Name
attribute in the manifest file, so the module name is inferred from the .jar name, making it unstable. I have checked the bundled dependencies as well and neither of those defines a module-info
or Automatic-Module-Name
, so it is not a matter of using them in favor of the shaded bundle.
How can I circumvent this? Am I not supposed to be using Java modules together with Weld CDI until they add their own module-info
or Automatic-Module-Name
, if they ever do?