From 7f74576d939351dc44db0bddee21a3ccdc0f11ac Mon Sep 17 00:00:00 2001 From: tobixlea Date: Wed, 18 Feb 2026 10:24:25 -0800 Subject: [PATCH] migration from nexus 2 to Maven Central --- .github/workflows/release.yml | 6 +++--- pom.xml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ff2bea79..fc9bba758 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: with: distribution: 'corretto' java-version: 17 - server-id: sonatype-nexus-staging + server-id: sonatype-central-staging server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} # Value of the GPG private key to import @@ -32,6 +32,6 @@ jobs: - name: Release and publish package run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} env: - MAVEN_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }} + MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/pom.xml b/pom.xml index 30bf82e93..00105c1a6 100644 --- a/pom.xml +++ b/pom.xml @@ -44,9 +44,9 @@ - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://aws.oss.sonatype.org/content/repositories/snapshots + sonatype-central-snapshots + Sonatype Central Snapshots + https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots false @@ -58,14 +58,14 @@ - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://aws.oss.sonatype.org/content/repositories/snapshots/ + sonatype-central-snapshots + Sonatype Central Snapshots + https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/ - sonatype-nexus-staging - Nexus Release Repository - https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/ + sonatype-central-staging + Central Release Repository + https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/