mbien commented on issue #7040:
URL: https://github.com/apache/netbeans/issues/7040#issuecomment-1946268639

   ```
   Caused by: java.lang.IllegalArgumentException: Unsupported class file major 
version 65
       at org.objectweb.asm.ClassReader.<init> (ClassReader.java:199)
       at org.objectweb.asm.ClassReader.<init> (ClassReader.java:180)
       at org.objectweb.asm.ClassReader.<init> (ClassReader.java:166)
       at 
org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor.visitClass
 (DependencyClassFileVisitor.java:60)
   ```
   This would be ASM complaining.
   
   i looked at the dependency list of the `SaloonsAdminLogging` project and it 
looks good. It has `org.ow2.asm:asm:jar:9.5` which supports JDK 21 and 
`org.apache.maven.shared:maven-dependency-analyzer:jar:1.13.2` - so nothing got 
downgraded.
   
   The only older asm lib is in the surefire plugin, 7.2 is definitively not 
JDK 21 compatible - but this shouldn't influence the nbm plugin.
   
   So I can't explain what is going on there, but this is still worth a try:
   try to declare the asm dependency explicitly for the `nbm-maven-plugin`:
   ```xml
               <plugin>
                   <groupId>org.apache.netbeans.utilities</groupId>
                   <artifactId>nbm-maven-plugin</artifactId>
                   <version>14.0</version>
                   <extensions>true</extensions>
                   <dependencies>
                       <dependency>
                           <groupId>org.ow2.asm</groupId>
                           <artifactId>asm</artifactId>
                           <version>9.5</version>
                       </dependency>
                   </dependencies>
               </plugin>
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to