jpackage-maven-plugin
jpackage-maven-plugin copied to clipboard
module project using java 21 failed due to older asm version
Problem
Using the plugin and a module project with java 21 I got an ASM unknown bytecode version 65.
plexus-java
is what pulls in asm 9.2.
Work around
In the plugin config just define a newer asm version
<plugin>
<groupId>com.github.akman</groupId>
<artifactId>jpackage-maven-plugin</artifactId>
<version>0.1.5</version>
<dependencies>
<!-- need a newer version of asm to support java 21 -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.6</version>
</dependency>
</dependencies>
</plugin>
Longer term solution
I think is to move to eclipse sisu which I think the plugins are switching to. https://codehaus-plexus.github.io/plexus-containers/plexus-component-metadata/#deprecated https://eclipse.dev/sisu/