We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc9904b commit c11b76cCopy full SHA for c11b76c
src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
@@ -4603,7 +4603,8 @@ private void addJavadocOptions(
4603
}
4604
4605
if (moduleSourceDir == null) {
4606
- if (!disableSourcepathUsage) {
+ if (!disableSourcepathUsage
4607
+ && (!legacyMode || (excludePackageNames != null && !excludePackageNames.isEmpty()))) {
4608
addArgIfNotEmpty(
4609
arguments,
4610
"-sourcepath",
0 commit comments