Skip to content

fix(ci): migrate to Central Portal for Maven Central publishing#46

Merged
pratyush618 merged 1 commit intomainfrom
fix/release-bom-deploy
Mar 29, 2026
Merged

fix(ci): migrate to Central Portal for Maven Central publishing#46
pratyush618 merged 1 commit intomainfrom
fix/release-bom-deploy

Conversation

@pratyush618
Copy link
Copy Markdown
Collaborator

Summary

  • Replace legacy OSSRH endpoint (s01.oss.sonatype.org) with central-publishing-maven-plugin (Sonatype Central Portal)
  • Remove distributionManagement from both root and BOM POMs
  • Add central-publishing-maven-plugin to release profiles with autoPublish and waitUntil=published
  • Update workflow server-id from ossrh to central
  • Add BOM metadata (SCM, developers) and separate deploy step
  • Fix versions:set to update BOM version on release
  • Improve cache cleanup for PR merge refs, run daily

Context

The old OSSRH endpoint was sunset in June 2025 and returns 402. The Central Portal is the new publishing mechanism.

Action needed after merge

Verify that OSSRH_USERNAME and OSSRH_TOKEN GitHub secrets contain credentials from the Central Portal user token (https://central.sonatype.com → View Account → Generate User Token), not the old OSSRH.

@pratyush618 pratyush618 merged commit 7406c4b into main Mar 29, 2026
6 checks passed
@pratyush618 pratyush618 deleted the fix/release-bom-deploy branch March 31, 2026 17:11
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