maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Hohwiller (Jira) <>
Subject [jira] [Commented] (MJAVADOC-622) javadoc:javadoc fails for a JPMS module
Date Sat, 09 Nov 2019 20:28:00 GMT


Jörg Hohwiller commented on MJAVADOC-622:

Can you explain somewhat more please.

I am having the exact same error. MJAVADOC-576 is saying that the problem was that code was
not compiled before. So I even downloaded `` and did:

mvn install

mvn javadoc:javadoc

This gives me the exact error described here. I also have this errors for my entire project.
JavaDoc is completely unusable for me. This is a kind of blocker.

If I am stupid or missing something, please let me know. Otherwise I do not consider this
as a duplicate.

My Environment:

mvn -v
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
Maven home: /projects/mmm/software/maven
Java version: 11.0.5, vendor: AdoptOpenJDK, runtime: /projects/software/default/java/11.0.5_10/Contents/Home
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"

> javadoc:javadoc fails for a JPMS module
> ---------------------------------------
>                 Key: MJAVADOC-622
>                 URL:
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>          Components: javadoc
>    Affects Versions: 3.1.1
>            Reporter: Lukas Jungmann
>            Priority: Major
>         Attachments:, 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
> - 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] Command line was: /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home/bin/javadoc
@options @packages @argfile
> [ERROR] Refer to the generated Javadoc files in '/Users/lukas/NetBeansProjects/jdocbug/target/site/apidocs'
> {code}
> Expected behaviour is that javadoc for current project is generated in {{target/site/apidocs}}
> 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

View raw message