From be2fa208674c781b08658878ae375f2c058992fc Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Wed, 13 Dec 2023 10:58:44 +0700 Subject: [PATCH] [MJAVADOC-783] Invalid path when using TagletArtifact and TagletPath Co-authored-by: Rob Gordon Co-authored-by: Michael Osipov This closes #300 --- .../maven/plugins/javadoc/AbstractJavadocMojo.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java index cde92f309..515f4903b 100644 --- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java +++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java @@ -2968,14 +2968,11 @@ private String getTagletPath() throws MavenReportException { } } - StringBuilder path = new StringBuilder(); - path.append(StringUtils.join(pathParts.iterator(), File.pathSeparator)); - - if (tagletpath != null && !tagletpath.isEmpty()) { - path.append(JavadocUtil.unifyPathSeparator(tagletpath)); + if (StringUtils.isNotEmpty(tagletpath)) { + pathParts.addAll(Arrays.asList(JavadocUtil.splitPath(tagletpath))); } - return path.toString(); + return StringUtils.join(pathParts, File.pathSeparator); } private Set collectLinks() throws MavenReportException {