maven-javadoc-plugin, java 9 modules and 'impl' - Stack Overflow

admin2025-04-17  2

In all my projects I configure the maven-javadoc-plugin with <excludePackageNames> so that impl packages are excluded from the documentation production. But in certain cases I change this setting to generate documentation for all packages, typically in example code that I use for the "Getting started" section of the manual, which explains e.g. how to use a library — in particular I use this setting to make the UMLDoclet generate UML diagrams.

This has been working so far, but stopped when I added module-info.java to a project; while I wasn't able to find anything in the plugin documentation, I suppose it's an automatic setting (or maybe it's a javadoc thing).

Can you confirm this? Is it possible to override it? Using the <legacyMode> configuration of the plugin doesn't fix the problem.

Maven 3.9.9, maven-javadoc-plugin 3.11.2.

Thanks.

转载请注明原文地址:http://anycun.com/QandA/1744850451a88497.html