Skip to content

Migrate release publishing from OSSRH to Central Publisher Portal - #626

Merged
diemol merged 1 commit into
mainfrom
fix/sonatype-central-migration
Sep 15, 2026
Merged

diemol merged 1 commit into
mainfrom
fix/sonatype-central-migration

Conversation

@diemol

@diemol diemol commented Sep 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Sonatype has fully decommissioned the legacy OSSRH host (oss.sonatype.org), which caused the release workflow to fail with a 404 during deploy.
  • Replace nexus-staging-maven-plugin with org.sonatype.central:central-publishing-maven-plugin:0.11.0 targeting the new Central Publisher Portal (central.sonatype.com), and drop the now-unneeded distributionManagement block.
  • Update release.yml to use the central server id and CENTRAL_USERNAME/CENTRAL_TOKEN secrets instead of OSSRH_USERNAME/OSSRH_TOKEN.

Before merging / releasing

  • Generate a User Token at central.sonatype.com (Account → Generate User Token)
  • Add repo secrets CENTRAL_USERNAME and CENTRAL_TOKEN with those values

Test plan

  • mvn validate passes with the updated pom.xml
  • Run the "Release to Maven Central" workflow once the new secrets are in place to confirm publishing succeeds end-to-end

🤖 Generated with Claude Code

Sonatype has fully decommissioned the legacy oss.sonatype.org (OSSRH)
host, causing the release workflow to fail with a 404. Replace the
nexus-staging-maven-plugin with central-publishing-maven-plugin
targeting central.sonatype.com, and update the release workflow to
use CENTRAL_USERNAME/CENTRAL_TOKEN secrets instead of OSSRH_USERNAME/
OSSRH_TOKEN.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@diemol
diemol merged commit 9a80800 into main Sep 15, 2026
12 checks passed
@diemol
diemol deleted the fix/sonatype-central-migration branch September 15, 2026 14:14
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