From 428c100f4faf9e058d5f21ceaafdab7da59440f4 Mon Sep 17 00:00:00 2001 From: Pierangelo Di Pilato Date: Thu, 26 Jun 2025 09:37:09 +0200 Subject: [PATCH] Migrate from OSSRH to Central Portal Ref: https://central.sonatype.org/publish/publish-portal-maven/ Signed-off-by: Pierangelo Di Pilato --- .github/workflows/branch.yaml | 2 +- pom.xml | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/branch.yaml b/.github/workflows/branch.yaml index d5a69b25..3a93cbb5 100644 --- a/.github/workflows/branch.yaml +++ b/.github/workflows/branch.yaml @@ -34,7 +34,7 @@ jobs: uses: actions/setup-java@v1 with: java-version: 8 - server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml + server-id: central # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import diff --git a/pom.xml b/pom.xml index 48c170ac..79d9cd53 100644 --- a/pom.xml +++ b/pom.xml @@ -105,13 +105,13 @@ - ossrh - https://oss.sonatype.org/content/repositories/snapshots + central + https://central.sonatype.com/repository/maven-snapshots/ - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + central + https://central.sonatype.com @@ -229,17 +229,15 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://oss.sonatype.org/ - true + central + true - org.apache.maven.plugins maven-gpg-plugin