Open agavrilov76 opened 1 year ago
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:
JacksonAnnotationIntrospector
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.
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 :)
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.
The Java module
com.fasterxml.jackson.jakarta.rs.json
explicitly requirescom.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