-
Notifications
You must be signed in to change notification settings - Fork 81
jakarta.activation version conflict in 2.13 #152
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
Comments
Sigh. I wish there was someone to test this with 2.13.0-rc1 or rc2 (not mean as complaint to you @mkpaz -- thank you for reporting this :) ). I think I need some help here: one nice thing would be a test reproduction (maybe for My usual go to dev is @GedMarc -- WDYT? :) |
Hi @GedMarc -- any concerns, comments, on possibly doing this for 2.13.1 / 2.14.0? |
ok we have a few updates on the jakarta suite on Monday - |
@mkpaz do you have a means of managing dependency versions? in poms you could manage the jakarta activation version from your pom file (which is how i'm testing) and ensure it uses the right one |
Sorry for the late response and thanks for the fix. This would work since you basically just switching to older |
In your pom file there is a section called |
If you mean this, yes, it works:
|
…-dep Potential fix for #152 (jakarta/activation)
@mkpaz You would be using |
(please disregard my comment as I see this project already depends on jakarta XML 3.x in this module. I assumed it was staying in |
@flozano No problem: actually we have separate module for new "jakarta" annotations; old "JAXB annotations" will not be upgraded and will retain old dependency. This because like you say it is a major incompatibility, fork point. So the idea is that only new jakarta-xmlbind will move to use Jakarta dependency. This was added in 2.13. |
This was released in 2.13.2, out now. |
I've tried to upgrade to 2.13 branch just recently to get rid of old jaxb namespaces (#116). However after I've tried to build my app with
jlink
I've got this:I'm using new Jakarta XML Bind module, here is dependency tree fragment:
So,
jakarta.activation-api:jar:1.2.1
(Jackson dependency) conflicts withjakarta.activation:jar:2.0.1
(Jakarta XML Bind transitive dependency), because they're both using same module name.To fix this you probably should either exclude
jakarta.activation-api
from module dependencies or switch to the 4.x branch that doesn't depend on old activation API. Links to compare:3.x
4.x
A simple workaround is to include Bind API 4.x branch as a direct dependency, it's on RC stage.
The text was updated successfully, but these errors were encountered: