[
https://issues.apache.org/jira/browse/MJAVADOC-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971077#comment-16971077
]
Jörg Hohwiller commented on MJAVADOC-622:
-----------------------------------------
Excellent. Thanks for the hint. Same applies for the site generation as well.
Is there some general documentation about maven usage with modules or latest
Java versions? The we is full of desparate users failing to upgrade to Java11
or higher - just search google or stackoverflow.
I have already created this site:
[https://github.com/devonfw/devon4j/blob/develop/documentation/guide-jdk.asciidoc#upgrading]
Seems I should also add a module guide to this documentation. However, the
maven core team could (should?) have some interest in supporting their users in
this regard (surely off topic here in MJAVADOC). I only found things like
[https://maven.apache.org/plugins/maven-compiler-plugin/examples/module-info.html]
I did not report this issue, but I would agree that it is a duplicate. Can this
be closed then?
> javadoc:javadoc fails for a JPMS module
> ---------------------------------------
>
> Key: MJAVADOC-622
> URL: https://issues.apache.org/jira/browse/MJAVADOC-622
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: javadoc
> Affects Versions: 3.1.1
> Reporter: Lukas Jungmann
> Priority: Major
> Attachments: jdocbug.zip, options
>
>
> sample project is attached, so to reproduce, either unzip it and run {{mvn
> javadoc:javadoc}} or follow following steps:
> - have a simple jar project with a simple class/interface and module-info.java
> - define compiler(3.8.1) and javadoc(3.1.1) plugins
> - set 'release=11' for both
> - on the command line with JDK 11.0.4 run {{mvn javadoc:javadoc}}
> => fails with:
> {code}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc (default-cli) on
> project jdocbug: An error has occurred in Javadoc report generation:
> [ERROR] Exit code: 1 - error: module not found: org.jdocbug
> [ERROR]
> [ERROR] Command line was:
> /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home/bin/javadoc
> @options @packages @argfile
> [ERROR]
> [ERROR] Refer to the generated Javadoc files in
> '/Users/lukas/NetBeansProjects/jdocbug/target/site/apidocs' dir.
> [ERROR]
> {code}
> Expected behaviour is that javadoc for current project is generated in
> {{target/site/apidocs}} folder.
> looking into options file generated by the plugin:
> - {{patch-module}} option looks strange there
> - either {{source-path}} is missing or {{module-source-path}} points to wrong
> directory
--
This message was sent by Atlassian Jira
(v8.3.4#803005)