maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Gold (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MJAVADOC-498) "module not found" when module-info present
Date Sun, 01 Oct 2017 14:30:00 GMT
Russell Gold created MJAVADOC-498:
-------------------------------------

             Summary: "module not found" when module-info present
                 Key: MJAVADOC-498
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-498
             Project: Maven Javadoc Plugin
          Issue Type: Bug
          Components: javadoc
    Affects Versions: 3.0.0-M1
         Environment: Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: /opt/local/share/java/maven3
Java version: 9, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"

            Reporter: Russell Gold


Using my project at https://github.com/meterware/simplestub/tree/287794112a6c2c932f2dbd6747a6339b73ab3718

running javadoc:javadoc yields:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:javadoc
(default-cli) on project simplestub: An error has occurred in Javadoc report generation: 
Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3:
error: module not found: org.objectweb.asm.commons
    requires org.objectweb.asm.commons;
                              ^
/Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module
not found: javassist
    requires javassist;
             ^

Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options
@packages @argfile

Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs'
dir.

	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:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	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.MojoExecutionException: An error has occurred in Javadoc
report generation: 
Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3:
error: module not found: org.objectweb.asm.commons
    requires org.objectweb.asm.commons;
                              ^
/Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module
not found: javassist
    requires javassist;
             ^

Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options
@packages @argfile

Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs'
dir.

	at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.failOnError(AbstractJavadocMojo.java:5954)
	at org.apache.maven.plugins.javadoc.JavadocReport.doExecute(JavadocReport.java:322)
	at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1889)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 20 more
Caused by: org.apache.maven.reporting.MavenReportException: 
Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3:
error: module not found: org.objectweb.asm.commons
    requires org.objectweb.asm.commons;
                              ^
/Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module
not found: javassist
    requires javassist;
             ^

Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options
@packages @argfile

Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs'
dir.

	at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5075)
	at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:2093)
	at org.apache.maven.plugins.javadoc.JavadocReport.generate(JavadocReport.java:130)
	at org.apache.maven.plugins.javadoc.JavadocReport.doExecute(JavadocReport.java:318)
	... 23 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
/Users/rgold/projects/meterware/simplestub> 


Building the project works




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message