From 81f62a795e0897ac63ef0618329db7a853b011c3 Mon Sep 17 00:00:00 2001 From: Jeff Xiang Date: Fri, 17 Apr 2026 12:09:24 -0700 Subject: [PATCH] Fix maven central publish --- .../workflows/publish_to_maven_central.yml | 2 +- pom.xml | 36 ++++++++++++------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish_to_maven_central.yml b/.github/workflows/publish_to_maven_central.yml index a9650375..21fcf249 100644 --- a/.github/workflows/publish_to_maven_central.yml +++ b/.github/workflows/publish_to_maven_central.yml @@ -15,7 +15,7 @@ jobs: with: java-version: 8 distribution: 'corretto' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} diff --git a/pom.xml b/pom.xml index 11e80690..6e0b0d28 100644 --- a/pom.xml +++ b/pom.xml @@ -56,13 +56,13 @@ https://github.com/pinterest/psc HEAD - - - ossrh - Central Repository OSSRH - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + + + + + + + @@ -184,15 +184,25 @@ + + + + + + + + + + + - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://oss.sonatype.org/ - true + central + true