Skip to content

chore(ci): allow Central origin for snapshot deploy credentials - #4058

Merged
javahippie merged 1 commit into
mainfrom
fix/4056-central-credentials
Nov 6, 2026
Merged

javahippie merged 1 commit into
mainfrom
fix/4056-central-credentials

Conversation

@javahippie

Copy link
Copy Markdown
Contributor

Fixes #4056.

Maven 3.10 only sends server credentials to the origins configured for that server id. central defaults to repo.maven.apache.org, so the snapshot deploy to central.sonatype.com went out without credentials and got a 401. This adds central.sonatype.com as an allowed origin in the generated settings.xml.

@javahippie javahippie added the build Changes related to the build system, including Maven configurations, GitHub Actions workflows label Nov 6, 2026
@github-actions github-actions Bot added the scope:ci Changes to the CI, e.g. GitHub workflows label Nov 6, 2026
@javahippie
javahippie merged commit 500ad8c into main Nov 6, 2026
6 checks passed
@kthoms
kthoms deleted the fix/4056-central-credentials branch November 6, 2026 21:52
kthoms added a commit that referenced this pull request Nov 6, 2026
- pass -Ddeploy.skip=false: the root pom sets deploy.skip=true, which
  turned every deploy-file call into a silent no-op
- deploy with server id central again: since #4058 the generated
  settings.xml allows https://central.sonatype.com as repository origin
  for that id, so a separate central-snapshots id is not needed
- address Sonar findings in deploy-staged-snapshots.sh

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kthoms pushed a commit that referenced this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Changes related to the build system, including Maven configurations, GitHub Actions workflows scope:ci Changes to the CI, e.g. GitHub workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snapshot deploy to Central fails with 401 since Maven 3.10.0

2 participants