Sorry  for the confusion but you simply need to upgrade
maven-plugin-tools version in your pom as last  version already
include the upgraded asm version
It's usually a good practice to declare in your pom every plugins you are using.

On Mon, 4 Mar 2024 at 16:07, Olivier Lamy <ol...@apache.org> wrote:
>
> actually this need a version of this
> https://github.com/apache/maven-plugin-tools which have the necessary
> upgrade of asm. (maybe you can test locally a snapshot to be sure it
> works)
> But bear in mind if you are using maven-invoker-plugin with some
> groovy scripts to verify, you will have some issues as last time I
> checked (few weeks ago) groovy didn't support yet a new version of
> asm.
> And sadly this is shaded within groovy jars so there is no way to
> override this :(
>
> On Mon, 4 Mar 2024 at 15:38, 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to