jackson-jaxrs-providers: Incorrect export of `com.fasterxml.jackson.jaxrs.json` for JSON provider

When running an app with 2.10.1 using JPMS, I get the following error:

Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: 
/home/triceo/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.10.1/jackson-jaxrs-json-provider-2.10.1.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Exported package com.fasterxml.jackson.jaxrs.json already declared

I am assuming this has to do with the following module-info.class that my IntelliJ IDEA decompiled for me:

decompiled

(See lines 15 and 16.)

Unfortunately, this makes Jackson 2.10.1 unusable in the context of Java modularity.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 35 (20 by maintainers)

Commits related to this issue

Most upvoted comments

Full release takes half a day so I do not have time to spend on that at this point. But micro patch is doable. That’s what those are for, and I can match that with jackson-bom that does provide full version set (even if there is but one difference).

Note: changed title a bit as I will use this issue number for fix inclusion in 2.10.3. Thank you everyone for your help here.

… and should you find any other problems in other provides (quite possible, json one has gotten most attention), please report them, ideally as new issues.

And yes, I was right from beginning. I FUCKING HATE Oracle’s piece of shit module system.

Was probably bad move to try to support it.

@robinvanpraet @tomdw Knowing that nothing annoys cowtowncoder more than people ordering him what to do with his free time, I’m curious if you’ve considered subscribing for Enterprise Support, which looks like just the sort of thing to address these sorts of issues?

Enterprise support

_Available as part of the Tidelift Subscription.

The maintainers of jackson-jaxrs-providers and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more._

https://tidelift.com/subscription/pkg/maven-com-fasterxml-jackson-jaxrs-jackson-jaxrs-json-provider?utm_source=maven-com-fasterxml-jackson-jaxrs-jackson-jaxrs-json-provider&utm_medium=referral&utm_campaign=enterprise&utm_term=repo