Skip to content

build: use a dedicated server id for Sonatype Central - #317

Open
spannm wants to merge 1 commit into
hypfvieh:masterfrom
spannm:sonatype-central-server-id
Open

spannm wants to merge 1 commit into
hypfvieh:masterfrom
spannm:sonatype-central-server-id

Conversation

@spannm

@spannm spannm commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

GitHub's ubuntu runners now come with Maven 3.10, which only hands the credentials of server id central to Maven Central itself. Snapshot deploys to central.sonatype.com then fail with HTTP 401. I ran into this in other projects today, so this switches the id to sonatype-central in the pom and in the deploy workflow.

Your last snapshot deploy on Sep 21 still went through, so the next push to master would probably be the first one to fail.

Please note that for releases, the <server> entry in your ~/.m2/settings.xml needs the new id sonatype-central as well. The GitHub secrets can stay as they are.

Maven 3.10 only sends the credentials of server id 'central' to Maven
Central itself (repo.maven.apache.org), so deploys to
central.sonatype.com fail with HTTP 401. Use the id 'sonatype-central'
instead.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant