Hi Glenn, Glenn Holmer <ce...@kolabnow.com.INVALID> writes:
> Is anybody else having trouble getting NetBeans to generate Javadoc? > I've got a modular project (source level 11) that builds and runs > successfully (other programs can call into it by declaring the > module), but when I click "Generate Javadoc" from the project menu, I > get > > "Exit code: 1 - error: module not found: org.lyonlabs.d64" > > That's the module name of the project itself. I made sure to be using > the latest maven-javadoc-plugin (3.2.0), with source set to 11. I get > the same result with "mvn javadoc:javadoc" from the command line. If I > change the POM for maven-javadoc-plugin to <source>8</source>, I get > beautiful and complete Javadoc, although of course without any module > information. See: https://issues.apache.org/jira/projects/MJAVADOC/summary "Maven Javadoc Plugin NOTE: when working with the Java Platform Modular System, be aware that the javadoc tool requires the compiled code, hence try to run mvn compile javadoc:javadoc before filing an issue." I.e., try running this explicitly: mvn compile javadoc:javadoc Seems like NetBeans ought to do this for you when you ask it to build Javadocs, but for some reason it doesn't. You have to invoke Maven explicitly (which you can do from the IDE), and you have to say "mvn compile javadoc:javadoc". Just "mvn javadoc:javadoc" is not enough. -- Chris
signature.asc
Description: PGP signature