Details
Description
Javadoc generation fails for Jigsaw modules that depends on other Jigsaw modules:
module c { requires a; requires b; }
while javadoc generation succeeds for modules a and b which have no module dependencies javadoc generation fails for module c which has module dependencies
MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - /Users/user/git/jigsaw/src/main/java/module-info.java:3: error: module not found: a [ERROR] requires a; [ERROR] ^ [ERROR] /Users/user/git/jigsaw/src/main/java/module-info.java:4: error: module not found: b [ERROR] requires b; [ERROR] ^ [ERROR] [ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile [ERROR] [ERROR] Refer to the generated Javadoc files in '/Users/user/git/jigsaw/target/apidocs' dir.
The issue seems to be that the javadoc plugin only ever sets classpath. The javadoc plugin would have to set -module-path like the compiler plugin does.
Attachments
Issue Links
- links to