Skip to content

JavadocLinkGenerator.createLink(String) generates incorrect external links for Javadocs being generated with module names #1038

@kwin

Description

@kwin

Affected version

3.15.2

Bug description

When using the following configuration:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-plugin-plugin</artifactId>
    <configuration>
        <externalJavadocBaseUrls>
           <externalJavadocBaseUrl>https://docs.oracle.com/en/java/javase/11/docs/api/</externalJavadocBaseUrl>
        </externalJavadocBaseUrls>
    </configuration>
</plugin>

Any goal parameters of type java.lang.String have the following invalid Javadoc URL:

https://docs.oracle.com/en/java/javase/11/docs/api/java/lang/String.html instead of the correct one https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html

The logic within

needs to be adjusted to take into account the module name as well.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions