You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CycloneDX fails with: Unsupported class file major version 64
[ERROR] Failed to execute goal org.cyclonedx:cyclonedx-maven-plugin:2.7.6:makeAggregateBom (generate-bom) on project dsalert: Execution generate-bom of goal org.cyclonedx:cyclonedx-maven-plugin:2.7.6:makeAggregateBom failed: Unsupported class file major version 64 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.cyclonedx:cyclonedx-maven-plugin:2.7.6:makeAggregateBom (generate-bom) on project dsalert: Execution generate-bom of goal org.cyclonedx:cyclonedx-maven-plugin:2.7.6:makeAggregateBom failed: Unsupported class file major version 64
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:347)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
[...]
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution generate-bom of goal org.cyclonedx:cyclonedx-maven-plugin:2.7.6:makeAggregateBom failed: Unsupported class file major version 64
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
[...]
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 64
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)
at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visitClass (ClassFileVisitorUtils.java:149)
at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acceptDirectory (ClassFileVisitorUtils.java:133)
at org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept (ClassFileVisitorUtils.java:69)
at org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze (ASMDependencyAnalyzer.java:48)
at org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.buildDependencyClasses (DefaultProjectDependencyAnalyzer.java:235)
at org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.buildMainDependencyClasses (DefaultProjectDependencyAnalyzer.java:220)
at org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.analyze (DefaultProjectDependencyAnalyzer.java:73)
at org.cyclonedx.maven.CycloneDxMojo.doProjectDependencyAnalysis (CycloneDxMojo.java:86)
at org.cyclonedx.maven.CycloneDxAggregateMojo.prepareMavenDependencyAnalysis (CycloneDxAggregateMojo.java:197)
[...]
I did some digging, and you appear to use the latest version of maven-dependency-plugin 1.13, but there is an open issue https://issues.apache.org/jira/browse/MDEP-848 to upgrade objectweb.asm to fix this:
After building a project with
CycloneDX fails with: Unsupported class file major version 64
I did some digging, and you appear to use the latest version of maven-dependency-plugin 1.13, but there is an open issue https://issues.apache.org/jira/browse/MDEP-848 to upgrade objectweb.asm to fix this:
Apparently, this would also make it compatible with Java 21
The text was updated successfully, but these errors were encountered: