Thanks a lot, Olivier! Explicitly setting the maven-plugin-plugin version
to the latest 3.11.0 solved the problem for me.

Regards,
Sergei


On Sun, Mar 3, 2024 at 9:37 PM Sergi Vladykin <sergi.vlady...@gmail.com>
wrote:

> Hi,
>
> I'm trying to build a maven plugin with JDK-22
> and DefaultMojoAnnotationsScanner fails with
>
> Caused by: java.lang.IllegalArgumentException: Unsupported class file
> major version 66
>     at org.objectweb.asm.ClassReader.<init> (ClassReader.java:199)
>
> I'm specifically trying to test the Java 22 release version, with 21 it
> works fine.
>
> JDK-22 is going to be released in a couple of weeks, is there plan to
> support it in Maven 3?
>
> Thanks!
> Sergei
>

Reply via email to