chore: migrate Maven deployment from OSSRH to Maven Central Portal#1327
Merged
Conversation
OSSRH (oss.sonatype.org) is decommissioned per https://central.sonatype.org/pages/ossrh-eol/. Replace nexus-staging-maven-plugin with central-publishing-maven-plugin and switch the release workflow to use the central Sonatype Portal endpoints and MAVEN_CENTRAL_USERNAME/MAVEN_CENTRAL_PASSWORD credentials.
The org-level secrets MAVEN_CENTRAL_USERNAME/MAVEN_CENTRAL_PASSWORD do not exist; reuse the existing SONATYPE_USERNAME/SONATYPE_PASSWORD secrets which carry over the Central Portal user-token after the Sonatype OSSRH -> Central Portal migration. The Maven server id stays 'central' to match publishingServerId in pom.xml.
Contributor
Author
|
Updated to reuse the existing org-level Warning Per the open-source guild Slack thread, the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7withorg.sonatype.central:central-publishing-maven-plugin:0.8.0in thereleaseprofile..github/workflows/settings.xmlprofile and server id fromossrhtocentraland point athttps://central.sonatype.com/repository/maven-{releases,snapshots}/.SONATYPE_USERNAME/SONATYPE_PASSWORDtoMAVEN_CENTRAL_USERNAME/MAVEN_CENTRAL_PASSWORDinmaven-release.ymlandsettings.xml, and switch the active Maven profile fromossrhtocentral.OSSRH (
oss.sonatype.org) is decommissioned per https://central.sonatype.org/pages/ossrh-eol/; this mirrors the migration applied in adobe/aem-core-wcm-components#2977.The Release workflow on release/57 has been failing with
401 Unauthorizedagainsthttps://oss.sonatype.org/(run). A parallel cherry-pick of this commit has been opened againstrelease/57to unblock the v57 release.Important
Requires the org-level secrets
MAVEN_CENTRAL_USERNAMEandMAVEN_CENTRAL_PASSWORDto be populated with valid Central Portal user-tokens for thecom.adobe.aemnamespace before this can publish successfully.Test plan
MAVEN_CENTRAL_USERNAME/MAVEN_CENTRAL_PASSWORDorg secrets exist (with OSPO)central.sonatype.comsucceeds