Skip to content

Commit eb93a3a

Browse files
committed
use --source-path insetad of --module-source-path
1 parent cbcc437 commit eb93a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4614,8 +4614,9 @@ private void addJavadocOptions(
46144614

46154615
} else if (mainResolvePathResult == null
46164616
|| ModuleNameSource.MODULEDESCRIPTOR.equals(mainResolvePathResult.getModuleNameSource())) {
4617+
// modified for MJAVADOC-806
46174618
addArgIfNotEmpty(
4618-
arguments, "--module-source-path", JavadocUtil.quotedPathArgument(moduleSourceDir.toString()));
4619+
arguments, "--source-path", JavadocUtil.quotedPathArgument(getSourcePath(sourcePaths)));
46194620
}
46204621

46214622
addArgIfNotEmpty(arguments, "-subpackages", subpackages);

0 commit comments

Comments
 (0)