If you are building some fat jar with all the jars and having an issue
because "module-info.class" is on the same package for different jars and
is a different class,
I would add some rule to your build tool to just ignore that class name
which is well known as class name for module information, it is safe to
completely ignore it for JDK 8 and below.
I don't think there is something that can be done on the Jackson side,
module info is pretty standard and needed to support JDK 9+

Here is some example of the same problem and how to solve it for Maven for
example:
https://github.com/javaee/jaxb-v2/commit/2961be74799e0d123f198cbe29fcd0dc4e8bcf63

On Tue, 28 Jan 2020 at 22:24, Ron Karim (Oracle Corp.) <[email protected]>
wrote:

> In our corporate builds in Oracle that use jackson, we need to support JDK
> 7 and JDK 8 as the current user-base/customers are still on JDK 7 and JDK 8
> based systems.
> Is there a way of ignoring the JDK 9 module_info.class from these jars ?
> We are not allowed to modify the jars, but the 3 jars need to be in the
> same repository as a single jackson patch.
>
> On Tuesday, January 28, 2020 at 2:14:07 PM UTC-8, Tatu Saloranta wrote:
>>
>> On Tue, Jan 28, 2020 at 11:36 AM Ron Karim (Oracle Corp.) <
>> [email protected]> wrote:
>>
>>> Basically Dependencies rejected for these 3 jars with the
>>> module_info.class (as it is different in all 3 jars).
>>> Is there a version 2.10.2  available with support for multi-release-jars
>>> ?
>>>
>>
>> No. Module-info classes should only be used by JDK 9 and above; Java 8
>> and below should just ignore these classes.
>>
>> What specifically is your issue? On which platform / tools?
>>
>> -+ Tatu +-
>>
>>
>>
>>>
>>> On Tuesday, January 28, 2020 at 11:03:53 AM UTC-8, Ron Karim (Oracle
>>> Corp.) wrote:
>>>>
>>>> As we are upgrading jackson modules to version 2.10.2, we are using
>>>> jackson_core, jackson_databind and jackson_annotations (all versions
>>>> 2.10.2),
>>>> Each of these jars have a module_info.class that seems to be different
>>>> in each jar. Hence we cannot use these 3 jars in our systems.
>>>>
>>>> Should we be using the same 2.10.2 version for jackson_core and ja
>>>> kson_annotations too ? Along with the jackson_databind 2.10.2 ?
>>>>
>>>> Or is there another resolution to dealiing with the module_info.class
>>>> in each of these jars ?
>>>>
>>>> Appreciate your help.
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "jackson-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jackson-user/c73577d8-f4e0-4983-9314-81631827eeb9%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jackson-user/c73577d8-f4e0-4983-9314-81631827eeb9%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "jackson-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jackson-user/01eacd95-7ca3-4125-8205-0f9bbe4d16e8%40googlegroups.com
> <https://groups.google.com/d/msgid/jackson-user/01eacd95-7ca3-4125-8205-0f9bbe4d16e8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/CAJsS9NPJ%2ByHok22bn5HsgmG9FsunriMah6WWSjhaKfPas8Boog%40mail.gmail.com.

Reply via email to