Eirik Bakke created NETBEANSINFRA-263:
-----------------------------------------

             Summary: NetBeans Module plugin fails to wrap Java 17 JARs
                 Key: NETBEANSINFRA-263
                 URL: https://issues.apache.org/jira/browse/NETBEANSINFRA-263
             Project: Apache NetBeans Infra
          Issue Type: Bug
          Components: MU - Apache NetBeans NBM maven plugin
         Environment: OpenJDK 17.0.2
            Reporter: Eirik Bakke
         Attachments: pom.xml

The nbm-maven-plugin seems to have trouble wrapping JARs that have Java 17 
level class files in them. To reproduce, create an empty folder containing the 
attached pom.xml file and run "mvn install". The following error appears:

"Failed to execute goal 
org.apache.netbeans.utilities:nbm-maven-plugin:4.6:manifest (default-manifest) 
on project jdbc-mssql: Execution default-manifest of goal 
org.apache.netbeans.utilities:nbm-maven-plugin:4.6:manifest failed: Unsupported 
class file major version 61 -> [Help 1]"

Changing the external JAR version from 10.2.0.jre17 to 10.2.0.jre11 makes the 
build succeed.

(Per the readme on 
https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin , and since this 
is a different JIRA project, submitting this bug via JIRA rather than on 
GitHub.)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

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

Reply via email to