Chore(Deployment): Migrate to modern central publishing plugin - #27
Merged
Conversation
brianlangeland
approved these changes
Jul 19, 2026
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.
Chore(Deployment): Migrate to modern central publishing plugin
If this commit is applied, it will update the Maven Central publishing workflow of the AEM connector by replacing the decommissioned legacy
nexus-staging-maven-pluginwith the modern, officially recommendedcentral-publishing-maven-plugin.Why was this change made?
Sonatype has deprecated its legacy OSSRH hosting instances (such as
s01.oss.sonatype.org), which resulted in404 - Not Foundconnection failures when attempting to deploy new versions using the legacy staging plugin.To restore and modernize our deployment pipeline, this change:
nexus-staging-maven-pluginfrom the parentpom.xml.<distributionManagement>.central-publishing-maven-pluginconfigured to target the new Sonatype Central Portal withautoPublishenabled.Links to any relevant tickets, articles, or other resources
Other Notes
Important for Deployers:
To successfully run
mvn clean deploymoving forward, any developer or CI/CD runner executing the release must update their local~/.m2/settings.xmlfile:<gpg.keyname>.<id>ossrh</id>(legacy Jira passwords will no longer work).Suggested Test for Reviewer
Since this is a build configuration change, you can test and verify the integrity of the updated POM configuration locally:
Note
Low Risk
Build/release configuration only; no application runtime or security logic changes, though failed deploys are possible until CI and local Maven credentials match the new Central Portal requirements.
Overview
Migrates Maven Central deployment from Sonatype’s deprecated OSSRH staging flow to the Central Portal publishing plugin so
mvn deployno longer hits retireds01.oss.sonatype.orgendpoints.In the parent
pom.xml, the legacynexus-staging-maven-pluginis removed and replaced withcentral-publishing-maven-plugin(0.6.0), usingpublishingServerIdossrhandautoPublishenabled.<distributionManagement>now only defines a snapshot repo athttps://central.sonatype.com/repository/maven-snapshots/; the old release staging repository URL is dropped.Release operators will need Central Portal user tokens (and updated
~/.m2/settings.xmlfor theossrhserver id) before deploys succeed—runtime AEM connector code is unchanged.Reviewed by Cursor Bugbot for commit c881f9e. Bugbot is set up for automated code reviews on this repo. Configure here.