Skip to content

Chore(Deployment): Migrate to modern central publishing plugin - #27

Merged
joelacummings merged 2 commits into
mainfrom
update_central_publishing_plugin
Jul 20, 2026
Merged

Chore(Deployment): Migrate to modern central publishing plugin#27
joelacummings merged 2 commits into
mainfrom
update_central_publishing_plugin

Conversation

@joelacummings

@joelacummings joelacummings commented Jul 15, 2026

Copy link
Copy Markdown
Member

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-plugin with the modern, officially recommended central-publishing-maven-plugin.

Why was this change made?

Sonatype has deprecated its legacy OSSRH hosting instances (such as s01.oss.sonatype.org), which resulted in 404 - Not Found connection failures when attempting to deploy new versions using the legacy staging plugin.

To restore and modernize our deployment pipeline, this change:

  • Removes the legacy nexus-staging-maven-plugin from the parent pom.xml.
  • Removes deprecated distribution repository mappings from <distributionManagement>.
  • Integrates the modern central-publishing-maven-plugin configured to target the new Sonatype Central Portal with autoPublish enabled.

Links to any relevant tickets, articles, or other resources

Other Notes

Important for Deployers:
To successfully run mvn clean deploy moving forward, any developer or CI/CD runner executing the release must update their local ~/.m2/settings.xml file:

  1. Ensure your GPG key fingerprint is declared in <gpg.keyname>.
  2. Generate a new User Token from the modern portal at central.sonatype.com and use those generated token credentials in your server block under <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:

  1. Pull this branch and navigate to the project root directory.
  2. Run a standard local build:
    mvn clean install
    

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 deploy no longer hits retired s01.oss.sonatype.org endpoints.

In the parent pom.xml, the legacy nexus-staging-maven-plugin is removed and replaced with central-publishing-maven-plugin (0.6.0), using publishingServerId ossrh and autoPublish enabled. <distributionManagement> now only defines a snapshot repo at https://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.xml for the ossrh server 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.

@joelacummings joelacummings added the enhancement New feature or request label Jul 16, 2026
@joelacummings
joelacummings merged commit 5723e06 into main Jul 20, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants