jdsmithsos opened a new issue, #7040: URL: https://github.com/apache/netbeans/issues/7040
### Apache NetBeans version Apache NetBeans 20 ### What happened I recently upgraded Netbeans to 20, and Java to 21. When building the multi-module project, the first few modules build without error. Then a module build fails with the following error: [ERROR] Failed to execute goal org.apache.netbeans.utilities:nbm-maven-plugin:4.8:manifest (default-manifest) on project SaloonsAdminLogging: Execution default-manifest of goal org.apache.netbeans.utilities:nbm-maven-plugin:4.8:manifest failed: Unsupported class file major version 65 -> [Help 1] The build output looks like this: [INFO] [INFO] --- nbm:4.8:manifest (default-manifest) @ SaloonsAdminLogging --- [INFO] NBM Plugin generates manifest [INFO] Adding on module's Class-Path: [INFO] org.slf4j:slf4j-api:jar:1.7.30 [INFO] org.apache.logging.log4j:log4j-slf4j-impl:jar:2.13.3 [INFO] org.apache.logging.log4j:log4j-api:jar:2.13.3 [INFO] org.apache.logging.log4j:log4j-core:jar:2.13.3 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for SaloonsAdmin-parent 1.11.0-SNAPSHOT: [INFO] [INFO] MyProject-parent ................................ SUCCESS [ 1.491 s] [INFO] MyProject-branding .............................. SUCCESS [ 1.590 s] [INFO] ControlsFXWrapper .................................. SUCCESS [ 3.356 s] [INFO] GoogleWrapper ...................................... SUCCESS [ 1.000 s] [INFO] ApacheCommonsWrapper ............................... SUCCESS [ 0.599 s] [INFO] MyProjectLogging ................................ FAILURE [ 1.343 s] [INFO] MyProjectDomain ...................................... SKIPPED Where the ControlsFXWrapper, GoogleWrapper, and ApacheCommonsWrapper all use the nbm-maven-plugin. But these modules don't have actual code, they just expose packages for the other modules to use. So the issue is when nbm-maven-plugin encounters the first module that actually has code, the build of the module fails. I downloaded NetBeans 20, but this build error doesn't require NetBeans 20. It is occurring on the command line. In the project pom.xml, I am using: NetBeans version: RELEASE180 nbm-maven-plugin version: 4.8, which I upgraded from 4.7 during this process. I know that NetBeans 20 is supporting Java 21, but when will the nbm-maven-plugin??? Thanks for any help you can provide with this issue. ### Language / Project Type / NetBeans Component Java Maven ### How to reproduce Execute a Maven build using Java 21, which uses the nbm-maven-plugin. Here is the Maven and Java info: Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Maven home: C:\SmithOptimalSolutions\tools\maven\apache-maven-3.9.6 Java version: 21.0.2, vendor: Oracle Corporation, runtime: C:\SmithOptimalSolutions\tools\java\jdk-21.0.2 Default locale: en_US, platform encoding: UTF-8 OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows" ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows 11 ### JDK openjdk version "21.0.2" 2024-01-16 ### Apache NetBeans packaging Apache NetBeans binary zip ### Anything else _No response_ ### Are you willing to submit a pull request? No -- 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
