Migrate from old OSS Sonatype to new Maven Central deployment #4
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.
This PR migrates the project from the legacy OSS Sonatype deployment infrastructure (
s01.oss.sonatype.org) to the new Maven Central publishing system (central.sonatype.com).Changes
Distribution Management URLs
Updated the
distributionManagementsection inpom.xmlto use the new Maven Central endpoints:https://s01.oss.sonatype.org/content/repositories/snapshots→https://central.sonatype.com/https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/→https://central.sonatype.com/Maven Plugin Migration
Replaced the deprecated Nexus Staging plugin with the new Central Publishing plugin:
org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0org.sonatype.central:central-publishing-maven-plugin:0.7.0Plugin Configuration Updates
Updated the plugin configuration to match the new Central Publishing plugin requirements:
serverId→publishingServerIdautoReleaseAfterClose→autoPublishnexusUrl(no longer needed)waitUntil: publishedfor synchronous publishingCompatibility
The existing GitHub Actions workflows (
release_deploy.ymlandsnapshot_deploy.yml) continue to work without modification, as they already use the correct credential names (OSSRH_USERNAMEandOSSRH_TOKEN) that are compatible with the new Maven Central system.Testing
This migration ensures the project can continue publishing to Maven Central using the modern publishing infrastructure.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.