Skip to content
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

Module com.fasterxml.jackson.jakarta.rs.json requires com.fasterxml.jackson.module.jakarta.xmlbind #13

Open
agavrilov76 opened this issue Feb 3, 2023 · 3 comments

Comments

@agavrilov76
Copy link

The Java module com.fasterxml.jackson.jakarta.rs.json explicitly requires com.fasterxml.jackson.module.jakarta.xmlbind without real need (AFAIK). It makes it impossible to use the JSON provider module without JAXB annotations when running with Java Modules

@cowtowncoder
Copy link
Member

This is true, but unfortunately not something that can be changed in Jackson 2.x. The issue is that due to some users' use of JAXB annotations for JSON, there is configurability in provider class that allows simple registration of one or both of:

  1. Default JacksonAnnotationIntrospector
  2. JAXB-annotation based introspector

and thus there is a hard dependency, even if you do not use JAXB-backed introspector.

This will be removed from Jackson 3.0 but unfortunately it has to stay in 2.x.

@agavrilov76
Copy link
Author

Alright, no problem.

For my use case we will make sure the JAXB module is not loaded to make sure the JAXB annotations are ignored.
Looking forward to Jackson 3.0 :)

@cowtowncoder
Copy link
Member

Yeah. 3.0 has been a rather... long-term project, alas. Always things that can still be done with 2.x :)

But this is definitely one of those things I am looking forward to resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants