-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK9+ Incorrect JPMS Automatic-Module-Name = simple-java-mail #245
Comments
This is a critical problem that prevents |
Actually, scratch that. In order for me to be able to add correct automatic module infos, I would have to:
At this point, I decided I don't have enough time to follow the rabbit hole so deep. :-) |
Hmm, sounds like shaving a yak :D Ok, so I control the parent POM repo's, does that help? I have some time now to take care of things. If the nonnull really can't work with Java 11, I think it should be tossed out until something better comes along. However, you can already simply disable the plugin: Simply add the following property to the POM:
That should greatly simplify the problem, yes? |
I think that it would help if the plugin configurations in those outside POMs moved to
I agree. I checked, there is no newer version.
Disabling it would help, yes. If that's allowed, I may give it another try later. |
Yes, let's disable it for now. Sounds like the Java 11+ multi-release issue has become more important now as well. |
@bbottema This is actually a precursor to #237. |
Ahh, ok. Seems like the next step for Simple Java Mail then is to be more compatible with the future and get both these issues out of the way. |
I have attached a Patch with limited Java 11 support. However, it only works like this:
For full support:
To make any sort of changes easier in the future, I also suggest refactoring the POMs so that the outside POMs don't have absolute control. Case in point: |
I think just redeclaring the plugin with just the version should result in a merged plugin config with the version overridden? But yes, I agree the outside POM's need to be refactored for this purpose. |
@bbottema I thought so, too. Didn't work for |
Actually the order of the plugins matter a lot because of jacoco and the license plugin (and the notnull plugin if used). Moving them to the Instead, at least for now I'll just keep the version management in the pluginManagement and keep the notnull plugin property to disable it. |
@bbottema I think it'd be enough to just define the versions in The goal of this change (at least the way I see it) is to lessen the barrier to entry when it comes to the project. And for me, that barrier is the parent POMs in some other repos, to which I would need to make separate PRs. But we should probably move that discussion to another issue, as it's only tangentially related to this one. |
…enyManagement, updated Jakarta dependencies for JDK9+. Disabled notnull Maven plugin, which doesn't work with JDK11+
@triceo, I've updated the parent poms, disabled the notnull plugin and added the Jakarta dependencies. The path should be clear now, let me know if you need anything else. |
Add automatic module names (fixes #245)
Released in 6.0.3 |
Jpms module name Automatic-Module-Name: simple-java-mail in MANIFEST.MF is not valid, change it please to simple.java.mail or else that is valid. thx!
The text was updated successfully, but these errors were encountered: