Re: Build a maven-plugin on JDK-22 with Maven 3.9.6

2024-03-04 Thread Sergi Vladykin
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 wrote: > Hi, > > I'm trying to build a maven plugin with JDK-22 > and DefaultMojoAnnotationsScanner fails

Re: Build a maven-plugin on JDK-22 with Maven 3.9.6

2024-03-03 Thread Olivier Lamy
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 wrote: > > actually

Re: Build a maven-plugin on JDK-22 with Maven 3.9.6

2024-03-03 Thread Olivier Lamy
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

Build a maven-plugin on JDK-22 with Maven 3.9.6

2024-03-03 Thread Sergi Vladykin
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. (ClassReader.java:199) I'm specifically trying to test the Java 22 release