Skip to content

Migrate ossrh to maven plugin - #888

Merged
Stephen Hegarty (stephenheg) merged 4 commits into
masterfrom
migrate-ossrh-to-maven-plugin
Aug 20, 2025
Merged

Stephen Hegarty (stephenheg) merged 4 commits into
masterfrom
migrate-ossrh-to-maven-plugin

Conversation

@stephenheg

Copy link
Copy Markdown
Contributor

This pull request updates the Maven publishing workflow to use Sonatype Central instead of OSSRH, aligning credentials and plugin configuration across the CI pipeline and build files. The changes ensure that publishing uses the new Sonatype Central infrastructure and credentials, and replace the legacy Nexus Staging plugin with the new Central Publishing plugin.

CI/CD Pipeline and Credential Updates:

  • Updated environment variable names and values in .semaphore/publish_to_maven.yml to use CENTRAL_TOKEN_USERNAME, CENTRAL_TOKEN_PASSWORD, and central instead of OSSRH-related variables and server ID.
  • Modified .semaphore/update_maven_settings.py to retrieve Sonatype Central credentials from the new environment variables.

Maven Build and Publishing Configuration:

  • Removed the distributionManagement section referencing OSSRH from pom.xml, eliminating legacy publishing configuration. [1] [2]
  • Replaced the nexus-staging-maven-plugin with the new central-publishing-maven-plugin, updating plugin group, artifact, version, and configuration to match Sonatype Central requirements.

Copilot AI review requested due to automatic review settings August 18, 2025 14:48
@stephenheg
Stephen Hegarty (stephenheg) requested a review from a team as a code owner August 18, 2025 14:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the Maven publishing workflow from OSSRH (OSS Repository Hosting) to Sonatype Central, updating both CI configuration and build files to use the new Central Publishing infrastructure and credentials.

  • Updates environment variables and server IDs from OSSRH to Central in CI pipeline
  • Replaces nexus-staging-maven-plugin with central-publishing-maven-plugin
  • Removes distributionManagement sections that referenced legacy OSSRH URLs

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pom.xml Removes OSSRH distributionManagement sections and replaces nexus-staging plugin with central-publishing plugin
.semaphore/update_maven_settings.py Updates environment variable names from OSSRH to Central token credentials
.semaphore/publish_to_maven.yml Changes server ID and credential environment variables to use Central instead of OSSRH

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@stephenheg
Stephen Hegarty (stephenheg) deleted the migrate-ossrh-to-maven-plugin branch August 20, 2025 09:14
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Aug 4, 2026
…double copyright headers; ledger cleanup

- Remove the concede optimizer that rode in via the pre-session ci/grumpy-runner-workflow
  merge: maven.yml restored to master (byte-identical), bin/ci-concede-check.sh deleted.
  It was removed from PR #75 by a 10-reviewer ce-review as a P0 gate-spoof (a PR could add
  a workflow named "highcpu" with a trivially-passing job and make the REQUIRED gate skip
  real tests) - inflight.md documents why it stays discarded. It should never have been in
  this PR.
- Collapse the doubled Confluent copyright header (a maven-license-plugin confluentinc#888 artifact) in
  the three files that carry it: BrokerIntegrationTest, KafkaClientUtils (both touched by
  this PR) and RetriesTest. Checker still 0 violations across 232 files.
- Ledger: delete the #98 entry (self-marked, #98 merged as 6d39081); shrink #80s own
  now-solved committedOffsetRemoved/drain narrative to a pointer + residual open tracking.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018igSVt74wPQAbRNHkXS4R8
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.

5 participants