-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Add detectOfflineLinks set to false in maven-javadoc-plugin configuration
#11132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…figuration See apache/maven-javadoc-plugin#1241 (comment) Avoid the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar (attach-javadocs) on project jenkins-war: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar failed: Null charset name -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar (attach-javadocs) on project jenkins-war: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar failed: Null charset name
|
/label skip-artifact-caching-proxy |
detectOfflineLinks set to false in maven-javadoc-plugin con…detectOfflineLinks set to false in maven-javadoc-plugin configuration
|
|
Last seen passing on master in https://ci.jenkins.io/job/Core/job/jenkins/job/master/7787/ from the 28th of September 2025.
Most Windows builds I've seen recently failed due to reclaimed Spot instances, I may have missed those with only failing tests. |
|
I've raised jenkins-infra/helpdesk#4818 as a single place to discuss the Windows build failures: jenkins-infra/helpdesk#4818 |
| <winstone.version>8.13.1</winstone.version> | ||
| <node.version>24.9.0</node.version> | ||
|
|
||
| <!-- Avoid "Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar failed: Null charset name" javadoc error --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <!-- Avoid "Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar failed: Null charset name" javadoc error --> | |
| <!-- TODO: remove when parent POM is updated to > 1.140 --> | |
| <!-- Avoid "Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar failed: Null charset name" javadoc error --> |
Should I add this TODO (and another one below L164) as the next parent pom will include maven-javadoc-plugin:3.12.0 which setdetectOfflineLinks to false by default?
Refs:
|
should be fixed with upgrading javadoc plugin see apache/maven-javadoc-plugin#1259 |
I've released it in the parent pom, PR here: #11139 I think we can close this |

This PR adds this configuration in the main pom.xml to avoid the following error encountered with #11130:
Refs:
Testing done
mvn --batch-mode --show-version --errors --no-transfer-progress -Pdebug -Penable-jacoco --update-snapshots -Dmaven.test.failure.ignore -DforkCount=2 -Dspotbugs.failOnError=false -Dcheckstyle.failOnViolation=false -Dset.changelist help:evaluate -Dexpression=changelist -DskipTests clean installlocally and confirmed the error is gone with this change.Proposed changelog entries
Proposed changelog category
/label skip-changelog
Proposed upgrade guidelines
N/A
Submitter checklist
@Restrictedor have@since TODOJavadocs, as appropriate.@Deprecated(since = "TODO")or@Deprecated(forRemoval = true, since = "TODO"), if applicable.evalto ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@timja @MarkEWaite @olamy @jglick @daniel-beck
Before the changes are marked as
ready-for-merge:Maintainer checklist
upgrade-guide-neededlabel is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidateto be considered (see query).