You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "GuyDaniel (via GitHub)" <gi...@apache.org> on 2024/03/27 21:14:25 UTC

[I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

GuyDaniel opened a new issue, #159:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159

   Any nbm module with code in it set to JDK 22 fails with :
    ` Execution default-manifest of goal org.apache.netbeans.utilities:nbm-maven-plugin:14.0:manifest failed: Unsupported class file major version 66 from directory = .... blah blah blah`
   The last version of nbm-maven-plugin to work is 3.13.3
   The newest version of the plugin - 14.0 does not, presumably as from about version 4.0 it started using the asm libraries.
   JDK 22 is quite new, and support for it probably only got included in the ASM release in March?
   This is easy to work around - just configure the nbm plugin as per:
   ```xml  
   <plugin>
       <groupId>org.apache.netbeans.utilities</groupId>
       <artifactId>nbm-maven-plugin</artifactId>
       <extensions>true</extensions>
       <dependencies>
           <dependency>
               <groupId>org.ow2.asm</groupId>
               <artifactId>asm</artifactId>
               <version>9.7</version>
           </dependency>
       </dependencies>
   </plugin>         
   ```
    I put this over in the netbeans issues by mistake and @mbien suggested that the project just needs to be rebuilt with updated dependencies.


-- 
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: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

Posted by "GuyDaniel (via GitHub)" <gi...@apache.org>.
GuyDaniel commented on issue #159:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159#issuecomment-2024057304

   I created a sample nb module project with jdk22, ran maven with the --errors switch and attached the output here if that helps. 
   
   I haven't studied this project, but maybe it's a dependency of NetBeansManifestUpdateMojo, which uses org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer, and then org.objectweb.asm.ClassReader?
   
   [mvn-build-debug.txt](https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/files/14781483/mvn-build-debug.txt)
   


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #159:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159#issuecomment-2024023215

   @ebarboni to avoid this in future, I think we should do the following:
    - find out what needs asm (some dependency of `nbm-maven-plugin` does, maybe something else does need it too)
    - declare asm directly as dependency in the pom, this way dependabot will see it and we have the latest for each release


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #159:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159#issuecomment-2025409543

   everyone is eagerly waiting for https://openjdk.org/jeps/457


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

Posted by "GuyDaniel (via GitHub)" <gi...@apache.org>.
GuyDaniel commented on issue #159:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159#issuecomment-2024071035

   I think dependabot is onto it over here ... https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159#issuecomment-2024023215
   


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

Posted by "ebarboni (via GitHub)" <gi...@apache.org>.
ebarboni commented on issue #159:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159#issuecomment-2025251629

   thks for reporting. I was refactoring a bit pom in the project and encounter the issue. #161 use exclusion so we could manage our asm version.
   
   


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

Posted by "ebarboni (via GitHub)" <gi...@apache.org>.
ebarboni commented on issue #159:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159#issuecomment-2025261312

   For the records asm is often ahead release of jdk. But the maven-dependency-analyzer is often a bit late.
   
   9.7 asm is for jdk 23
   9.6 asm is for jdk 22


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] nbm-maven-plugin does not work with Java 22 [netbeans-mavenutils-nbm-maven-plugin]

Posted by "ebarboni (via GitHub)" <gi...@apache.org>.
ebarboni closed issue #159: nbm-maven-plugin does not work with Java 22
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/159


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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