Skip to content

Fix fix-standard artifact publishing by migrating from OSSRH to Central Publishing Portal - #1

Merged
chrjohn merged 2 commits into
masterfrom
copilot/check-fix-standard-artifact-publishing
Sep 5, 2026
Merged

chrjohn merged 2 commits into
masterfrom
copilot/check-fix-standard-artifact-publishing

Conversation

Copilot AI commented Sep 2, 2026 •

Copy link
Copy Markdown

Sonatype permanently retired the legacy OSSRH service (oss.sonatype.org), which the parent pom.xml relied on via nexus-staging-maven-plugin to publish the fix-standard artifact. Deploys against that plugin now fail since the target service no longer exists.

Publishing plugin

  • Replaced org.sonatype.plugins:nexus-staging-maven-plugin with org.sonatype.central:central-publishing-maven-plugin (0.11.0)

Distribution management

  • Updated distributionManagement snapshot repository to point at https://central.sonatype.com/repository/maven-snapshots/ (id central)
  • Removed the obsolete repository (release) entry, since release publishing is now handled by the publishing plugin itself

Signing

  • Left maven-gpg-plugin signing in the release profile untouched — Central Publishing still requires signed artifacts
<distributionManagement>
  <snapshotRepository>
    <id>central</id>
    <url>https://central.sonatype.com/repository/maven-snapshots/</url>
  </snapshotRepository>
</distributionManagement>

<plugin>
  <groupId>org.sonatype.central</groupId>
  <artifactId>central-publishing-maven-plugin</artifactId>
  <version>0.11.0</version>
  <extensions>true</extensions>
  <configuration>
    <publishingServerId>central</publishingServerId>
    <autoPublish>true</autoPublish>
  </configuration>
</plugin>

Note: publishing will also require the maintainer to add central server credentials (Central Portal token) to their Maven settings.xml/CI secrets, replacing the old ossrh credentials — outside the scope of this repo change.

@chrjohn

chrjohn commented Sep 2, 2026

Copy link
Copy Markdown
Owner

@copilot please also create a work flow which can be triggered to deploy the artifact.

Copilot AI commented Sep 2, 2026

Copy link
Copy Markdown
Author

@copilot please also create a work flow which can be triggered to deploy the artifact.

Added .github/workflows/deploy.yml, a manually triggered (workflow_dispatch) workflow that runs mvn -P release deploy in 6254ddc. It expects CENTRAL_TOKEN_USERNAME, CENTRAL_TOKEN_PASSWORD, GPG_PRIVATE_KEY, and GPG_PASSPHRASE repository secrets to be configured for signing and publishing.

@chrjohn
chrjohn marked this pull request as ready for review September 5, 2026 12:30
@chrjohn
chrjohn merged commit 340d3c8 into master Sep 5, 2026
@chrjohn
chrjohn deleted the copilot/check-fix-standard-artifact-publishing branch September 5, 2026 12:30
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.

2 participants