From 29138da00f5b46e2ed352c0232829a9603757632 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Feb 2026 04:23:34 +0000 Subject: [PATCH 1/2] Add --pinentry-mode loopback to GPG plugin for non-interactive signing CI was failing because GPG tried to open an interactive pinentry prompt. This flag allows GPG to accept the passphrase via stdin in headless environments like GitHub Actions. https://claude.ai/code/session_01ToqqHtNtg7kdm8TmAMZYe8 --- pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pom.xml b/pom.xml index 6174e45..677c8a8 100644 --- a/pom.xml +++ b/pom.xml @@ -199,6 +199,10 @@ 3.2.8 FB32919AB5830162299F4125C49AB890BA00B57D + + --pinentry-mode + loopback + From 8eb183ee8d994cd9ca33511a6bddff9e0228808c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Feb 2026 04:38:07 +0000 Subject: [PATCH 2/2] Migrate from legacy OSSRH to Sonatype Central Portal Replace nexus-staging-maven-plugin with central-publishing-maven-plugin (v0.10.0) as oss.sonatype.org has been sunset. The deploy was failing with 401 because OSSRH doesn't accept Central Portal tokens. Changes: - Replace nexus-staging-maven-plugin with central-publishing-maven-plugin - Update distributionManagement to use 'central' server ID - Update release.yml server-id to match - Enable autoPublish for CI deployments https://claude.ai/code/session_01ToqqHtNtg7kdm8TmAMZYe8 --- .github/workflows/release.yml | 2 +- pom.xml | 19 ++++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86afc91..d0f98e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: with: java-version: '11' distribution: 'temurin' - server-id: maven-central-staging + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} diff --git a/pom.xml b/pom.xml index 677c8a8..f38f95c 100644 --- a/pom.xml +++ b/pom.xml @@ -27,12 +27,10 @@ - maven-central-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2 + central - maven-central-snapshots - https://oss.sonatype.org/content/repositories/snapshots + central @@ -184,14 +182,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 - false + org.sonatype.central + central-publishing-maven-plugin + 0.10.0 + true - maven-central-staging - https://oss.sonatype.org - + central + true