[
https://issues.apache.org/jira/browse/MJAVADOC-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16364401#comment-16364401
]
James Marble commented on MJAVADOC-449:
---------------------------------------
I'm getting a different error, but I still cannot run javadoc:aggregate on any
multi-module JDK 9 project with at least one module-info.java. It always
complains about a missing module descriptor for the root project:
{{[ERROR] no module descriptor for
maven-javadoc-aggregate-test:maven-javadoc-aggregate-test}}
This happens on javadoc:aggregate or a site build that is configured for
javadoc:aggregate.
{code:java}
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] maven-javadoc-aggregate-test
[INFO] maven-javadoc-aggregate-test-child
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building maven-javadoc-aggregate-test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-javadoc-plugin:3.0.0:aggregate (default-cli) > compile @
maven-javadoc-aggregate-test >>>
[INFO]
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking maven-javadoc-aggregate-test-child 0.0.1-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
maven-javadoc-aggregate-test-child ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Users\jm6534\Documents\maven-javadoc-plugin-aggregate-test\maven-javadoc-aggregate-test-child\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
maven-javadoc-aggregate-test-child ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to
C:\Users\jm6534\Documents\maven-javadoc-plugin-aggregate-test\maven-javadoc-aggregate-test-child\target\classes
[INFO]
[INFO] <<< maven-javadoc-plugin:3.0.0:aggregate (default-cli) < compile @
maven-javadoc-aggregate-test <<<
[INFO]
[INFO] --- maven-javadoc-plugin:3.0.0:aggregate (default-cli) @
maven-javadoc-aggregate-test ---
[ERROR] no module descriptor for
maven-javadoc-aggregate-test:maven-javadoc-aggregate-test
[INFO]
Loading source file
C:\Users\jm6534\Documents\maven-javadoc-plugin-aggregate-test\maven-javadoc-aggregate-test-child\src\main\java\module-info.java...
1 error
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] maven-javadoc-aggregate-test ....................... FAILURE [ 5.050 s]
[INFO] maven-javadoc-aggregate-test-child ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.313 s
[INFO] Finished at: 2018-02-14T08:46:47-08:00
[INFO] Final Memory: 20M/65M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:aggregate (default-cli) on
project maven-javadoc-aggregate-test: An error has occurred in Javadoc report
generation:
[ERROR] Exit code: 1 - error: module not found:
maven.javadoc.aggregate.test.child
[ERROR]
[ERROR] Command line was: "C:\Program Files\Java\jdk-9.0.1\bin\javadoc.exe"
@options @packages @argfile
[ERROR]
[ERROR] Refer to the generated Javadoc files in
'C:\Users\jm6534\Documents\maven-javadoc-plugin-aggregate-test\target\site\apidocs'
dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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
{code}
Attached is a minimal example that produces this error. Deleting
module-info.java "fixes" the problem. [^maven-javadoc-plugin-aggregate-test.zip]
> javadoc:aggregate fails with JDK 9
> ----------------------------------
>
> Key: MJAVADOC-449
> URL: https://issues.apache.org/jira/browse/MJAVADOC-449
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 2.10.3
> Reporter: Hervé Boutemy
> Assignee: Robert Scholte
> Priority: Major
> Attachments: maven-javadoc-plugin-aggregate-test.zip
>
>
> trying {{mvn -Preporting site}} with Maven core and maven-javadoc-plugin
> upgraded to 2.10.4-SNAPSHOT to benefit from already JDK 9 related fixed
> issues shows another one
> {noformat}[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project
> maven: Error generating maven-javadoc-plugin:2.10.4-SNAPSHOT:aggregate:
> Unable to resolve artifact:groupId = 'org.apache.maven.plugin-tools'
> [ERROR] artifactId = 'maven-plugin-tools-javadoc'
> [ERROR] version = '3.4': Missing:
> [ERROR] ----------
> [ERROR] 1) com.sun:tools:jar:1.4.2
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=com.sun -DartifactId=tools
> -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
> [ERROR]
> [ERROR] Alternatively, if you host your own repository you can deploy the
> file there:
> [ERROR] mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools
> -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
> [ERROR]
> [ERROR] Path to dependency:
> [ERROR] 1) org.apache.maven.plugin-tools:maven-plugin-tools-javadoc:jar:3.4
> [ERROR] 2) com.sun:tools:jar:1.4.2
> [ERROR]
> [ERROR] ----------
> [ERROR] 1 required artifact is missing.
> [ERROR]
> [ERROR] for artifact:
> [ERROR] org.apache.maven.plugin-tools:maven-plugin-tools-javadoc:jar:3.4
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR] apache.snapshots (http://repository.apache.org/snapshots,
> releases=false, snapshots=true),
> [ERROR] central (https://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [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{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)