Repository navigation
build: upgrade to Maven 3.10.0 and scope Central publishing credentials - #5990
Merged
Merged
Conversation
andreasfritz
approved these changes
Nov 27, 2026
hzpz
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the Maven wrapper to 3.10.0 and fixes Central publishing authentication, analogous to codecentric/chaos-monkey-spring-boot#679.
Since Maven 3.10, repository credentials are scoped to known origins. The server ID
centralalso matches Maven's default download repository (repo.maven.apache.org), so Maven withholds the credentials fromcentral.sonatype.comand the deployment fails with HTTP 401. See https://maven.apache.org/settings.html#server-repository-originsChanges
.settings.xml(settings model 1.3.0) with serversonatype-publishingandrepositoryOriginsset tohttps://central.sonatype.com; credentials still come fromMAVEN_USERNAME/MAVEN_PASSWORDsonatype-publishingaspublishingServerIdin thecentral-deployprofilerelease-to-maven-central.yml: deploy with--settings .settings.xml -Dmaven.repository.credentialScope=strict;setup-javaonly sets up JDK and GPG now<3.10Notes
maven-metadataproblem withcentral-publishing-maven-plugin0.11.0. The chaos-monkey PR suggests the plugin was not the cause, but this has not been verified against Central with 0.12.0, so the next release should be watched.build-main.ymlis unchanged../mvnw validate -P central-deploywith Maven 3.10.0 and strict credential scope. No real deploy was run.