-
Notifications
You must be signed in to change notification settings - Fork 78
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
Using jackson-module-jakarta-xmlbind-annotations
2.15.2 fails in OSGi Environment with JAXB 4
#219
Comments
Unfortunately I do not know enough about OSGi resolution to know. If anyone can resolve this and submit a patch, would be happy to merge. @GedMarc any thoughts? (aside from "OSGi sucks" :) ) |
I don' know, where the |
MANIFEST.MF is generated by Maven (OSGi) bundle plugin, based on pom.xml and possible overrides. Dependency from FasterXML/oss-parent project's parent pom (https://github.com/FasterXML/oss-parent/blob/master/pom.xml#L248 ) is:
But I am not 100% sure where logic for version range generation resides -- definitions are not included in |
I think it might be defined in here _versionpolicy but I'm struggling A wild guess would be to change this to But in https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jakarta-xmlbind-annotations/2.15.2 it is even mentioned to accept jakarta.xml.bind » jakarta.xml.bind-api Will try to make a meaning of this property! |
Seems like a good link https://bnd.bndtools.org/macros/range.html |
Does this mean that you actively disable the |
I was only talking about Maven side of things: that is, we would never use version ranges for Maven dependencies. Unfortunately I do not know much about workings of Maven bundle (felix?) plugin, or |
@cowtowncoder this should do the trick. I've seen this a few times in the Eclipse related plugins, |
jackson-module-jakarta-xmlbind-annotations
2.15.2 fails in OSGi Environment with JAXB 4
…osgi Fix #219: relax jakarta.xml.bind OSGI version dependency
Thank you @col-panic for providing the fix! |
Using the bundle Jackson Module Jakarta Xmlbind Annotations » 2.15.2 by integrating it via the target like
fails with
I can see that the limitation is also set in the META-INF/MANIFEST.MF in
https://repo1.maven.org/maven2/com/fasterxml/jackson/module/jackson-module-jakarta-xmlbind-annotations/2.15.2/jackson-module-jakarta-xmlbind-annotations-2.15.2.jar
JAXB is brought in as a dependency by jersey-media-jackson
What version of
jackson-module-jakarta-xmlbind-annotations
am I supposed to use here? Is there already a version compatible withjakarta.xml.bind >= 4
?The text was updated successfully, but these errors were encountered: