From c9cb2863cf6910bae7ee8ec7f81f62dded78bb40 Mon Sep 17 00:00:00 2001 From: Alexander Krimm Date: Fri, 16 Jan 2026 09:59:20 +0100 Subject: [PATCH] CI: restore maven central deployment Maven Central switched their deployment infrastructure from OSSRH to a maven central infrastrucutre, which requires using a different maven plugin for deployment. Signed-off-by: Alexander Krimm --- .github/workflows/maven.yml | 4 ++-- pom.xml | 21 +++++++-------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 64b8a7e0..21d08ffa 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -105,13 +105,13 @@ jobs: with: java-version: ${{ env.JAVA_REFERENCE_VERSION }} distribution: 'temurin' - server-id: ossrh + server-id: central server-username: SONATYPE_USER server-password: SONATYPE_PASS # gpg-private-key: ${{ secrets.GPG_KEY }} # gpg key was already added in the first java-setup phase, will fail the cleanup if added again gpg-passphrase: GPG_PASS - name: Deploy to Maven Central - run: mvn -DskipTests --no-transfer-progress --batch-mode -Drevision=${REVISION} -Dsha1=${SHA1} -Dchangelist=${CHANGELIST} -Drelease=ossrh deploy + run: mvn -DskipTests --no-transfer-progress --batch-mode -Drevision=${REVISION} -Dsha1=${SHA1} -Dchangelist=${CHANGELIST} -Drelease=central deploy env: GPG_PASS: ${{ secrets.GPG_PASSPHRASE }} SONATYPE_USER: ${{ secrets.SONATYPE_USER }} diff --git a/pom.xml b/pom.xml index fe7ce0dc..f0fa44e3 100644 --- a/pom.xml +++ b/pom.xml @@ -339,11 +339,11 @@ - releaseOSSRH + releaseCentral release - ossrh + central @@ -370,24 +370,17 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.9.0 true - ossrh - https://oss.sonatype.org/ - true + central + true - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - -