jackson-modules-base icon indicating copy to clipboard operation
jackson-modules-base copied to clipboard

Build from `master` fails due to Moditect plug-in `add-module-info`: "File jackson-module-afterburner-3.0.0-SNAPSHOT.jar is already modular "

Open cowtowncoder opened this issue 2 years ago • 3 comments

So, cloning repository and doing

./mvnw clean install

fails with something like:

[ERROR] Failed to execute goal org.moditect:moditect-maven-plugin:1.0.0.Final:add-module-info (add-module-infos) on project jackson-module-mrbean: File jackson-module-mrbean-3.0.0-SNAPSHOT.jar is already modular -> [Help 1]

with Afterburner module (afterburner/). Same is true for Mr Bean (mrbean/)

This is not happening with 2.16 build for whatever reason.

cowtowncoder avatar Jul 12 '23 21:07 cowtowncoder

@gunnarmorling I was wondering if you had any idea what might be causing this failure? Unfortunately I do not know exact point when this broke, and cannot see specific differences between afterburner/pom.xml on master (jackson 3.0.0-SNAPSHOT) and 2.16. But maybe this sounds similar to a well-known problem.

I do think it is likely related to shading. One diff between 2.16 and 3.0 is that former uses Asm for Afterburner, latter byte-buddy.

cowtowncoder avatar Jul 12 '23 21:07 cowtowncoder

Interesting: for some reason, Moditect plugin (https://mvnrepository.com/artifact/org.moditect/moditect-maven-plugin) version 1.0.0.RC1 still worked but RC2, RC3 and FINAL trigger this failure.

cowtowncoder avatar Jul 12 '23 21:07 cowtowncoder

Downgraded Moditect plug-in in master for now (pluginManagement version override on main-level pom.xml).

cowtowncoder avatar Jul 12 '23 21:07 cowtowncoder