Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

module project using java 21 failed due to older asm version #15

Open
sellersj opened this issue Dec 22, 2023 · 0 comments
Open

module project using java 21 failed due to older asm version #15

sellersj opened this issue Dec 22, 2023 · 0 comments

Comments

@sellersj
Copy link

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/

Akman added a commit that referenced this issue Aug 11, 2024
…java-for-working-with-jdk-21

 #15 - Upgrade plexus-java to 1.2.0 to support JDK 21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant