Resolution: Not A Problem
I have a simple project that exports a single module.
When I execute the command mvn javadoc:javadoc I get a "Exit code: 1 - error: module not found:" error for the module that is being exported.
If I remove the module-info.java file and run the command again then everything works as expected.
When the mvn javadoc:javadoc command fails it dumps configuration options into some text files in target/site/apidocs. If I delete the --module-source-path flag from the options file and re-run the command it works without problem.
Here is how to reproduce this problem. I've attached a tarball containing a simple project that invokes the error. dummy.tar
I have a directory structure as described below, a simple hello-world that exports a single module.
My module-info.java looks like this:
My maven-javadoc-plugin configuration looks like this:
In the root directory of the project, run mvn javadoc:javadoc. You should see an error that looks something like this:
If src/main/java/module-info.java is deleted then the docs are built as expected.