Skip to content

Broken external links in Javadoc artifacts in Maven Central #2241

@lbruun

Description

@lbruun

The links from the per-module Javadoc provided in Maven Central into the centrally hosted API docs are broken.

Description of bug

External Links from the Javadoc published in Maven Central point to https://aws.amazon.com/sdkforjava/apidocs but no Javadoc lives there.

Expected Behavior

Correct link.

Current Behavior

Reason for problem:
The Maven Javadoc Plugin by default uses ${project.url} value but this value is https://aws.amazon.com/sdkforjava. The Plugin will by convention expect to find Javadoc at the subpath /apidocs of this URL.

Possible Solution

Changing the project's URL, i.e. <url>....</url> value, in all POM files may not be the way to go solely to make the Maven Javadoc Plugin happy. Perhaps an URL redirect would be the easiest solution? Meaning having the aws.amazon.com website redirect requests for https://aws.amazon.com/sdkforjava/apidocs to https://sdk.amazonaws.com/java/api/latest/.

Another option might be to set links configuration value explicitly for the Maven Javadoc Plugin.

Context

Verified as a problem on v2.15.26, but I suspect the problem exist for any version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.needs-discussionThis issue/PR requires more discussion with community.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions