Skip to content

Fix Central publishing credential lookup on Maven 3.10 - #1000

Merged
eaftan merged 1 commit into
mainfrom
codex/fix-central-publishing-server-id
Oct 12, 2026
Merged

eaftan merged 1 commit into
mainfrom
codex/fix-central-publishing-server-id

Conversation

@eaftan

@eaftan eaftan commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Snapshot publishing began failing (example) with HTTP 401 after the GitHub runner upgraded to Maven 3.10. The publishing credentials used the ID central, which Maven associated with the built-in dependency repository at repo.maven.apache.org; it therefore withheld those credentials when uploading to central.sonatype.com.

Use central-portal consistently in the publishing plugin and both snapshot and release workflows. This separates publishing credentials from the dependency repository and lets Maven use its existing fallback for publishing server IDs without a declared origin.

Publishing against Sonatype remains to be confirmed in CI. Explicit origin binding and removal of the fallback warning are tracked in #999, once actions/setup-java#1282 is available in a released action version.

@eaftan
eaftan merged commit b0d82a7 into main Oct 12, 2026
24 checks passed
@eaftan
eaftan deleted the codex/fix-central-publishing-server-id branch October 12, 2026 13:47
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.

2 participants