maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MJAVADOC-542) Unsupported class file major version 55
Date Sat, 24 Nov 2018 11:07:00 GMT

     [ https://issues.apache.org/jira/browse/MJAVADOC-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte closed MJAVADOC-542.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.2

Fixed in [b78042eca643deb9dddb1b0a472345fce28ccb5d|https://gitbox.apache.org/repos/asf?p=maven-javadoc-plugin.git;a=commit;h=b78042eca643deb9dddb1b0a472345fce28ccb5d]

> Unsupported class file major version 55
> ---------------------------------------
>
>                 Key: MJAVADOC-542
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-542
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>            Reporter: Mark Raynsford
>            Assignee: Robert Scholte
>            Priority: Major
>             Fix For: 3.0.2
>
>
> It seems that when running the plugin on Java 11 (targeting Java 11 bytecode) on a project
that includes a module descriptor, you'll get a:
> {code}
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)   
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)   
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)   
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)   
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)   
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)   
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)    at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:105)    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)   
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)    at org.apache.maven.cli.MavenCli.main
(MavenCli.java:192)    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
Method)    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)   
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)   
at java.lang.reflect.Method.invoke (Method.java:566)    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)   
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)   
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)Caused by: org.apache.maven.plugin.PluginExecutionException:
Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar
failed: Unsupported class file major version 55    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:148)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)   
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)    at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:105)    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)   
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)    at org.apache.maven.cli.MavenCli.main
(MavenCli.java:192)    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
Method)    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)   
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)   
at java.lang.reflect.Method.invoke (Method.java:566)    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)   
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)   
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)Caused by: java.lang.IllegalArgumentException:
Unsupported class file major version 55    at org.objectweb.asm.ClassReader.<init>
(ClassReader.java:166)    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:148)   
at org.objectweb.asm.ClassReader.<init> (ClassReader.java:136)    at org.objectweb.asm.ClassReader.<init>
(ClassReader.java:237)    at org.codehaus.plexus.languages.java.jpms.AsmModuleInfoParser.parse
(AsmModuleInfoParser.java:115)    at org.codehaus.plexus.languages.java.jpms.AsmModuleInfoParser.getModuleDescriptor
(AsmModuleInfoParser.java:99)    at org.codehaus.plexus.languages.java.jpms.LocationManager.resolvePaths
(LocationManager.java:127)    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.addJavadocOptions
(AbstractJavadocMojo.java:4696)    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport
(AbstractJavadocMojo.java:2069)    at org.apache.maven.plugins.javadoc.JavadocJar.doExecute
(JavadocJar.java:190)    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute
(AbstractJavadocMojo.java:1912)    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:137)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)   
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)    at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:105)    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)   
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)    at org.apache.maven.cli.MavenCli.main
(MavenCli.java:192)    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
Method)    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)   
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)   
at java.lang.reflect.Method.invoke (Method.java:566)    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)   
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)   
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
> {code}
> Overriding the version of asm used to the 7.0 release that came out yesterday works around
the issue.
> {noformat}
>       <!-- Produce a javadoc jar -->
>       <plugin>
>         <artifactId>maven-javadoc-plugin</artifactId>
>         <dependencies>
>           <dependency>
>             <groupId>org.ow2.asm</groupId>
>             <artifactId>asm</artifactId>
>             <version>7.0</version>
>           </dependency>
>         </dependencies>
>       </plugin>
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message