From 8f48fda7f578b2f6d6627e7fdc9becb9c062120d Mon Sep 17 00:00:00 2001 From: Omphile Matheolane Date: Wed, 4 Nov 2026 21:24:50 +0200 Subject: [PATCH] Pin Maven 3.9 in the release workflow Hosted runners now ship Maven 3.10, whose local-repository changes make central-publishing-maven-plugin 0.11.0 stage bookkeeping files into the bundle, which Central rejects. Pin 3.9.11 until the plugin catches up (apache/maven#13388). Also move to the non-deprecated gpg-passphrase-env-var input and skip versions:set backup POMs. --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f002f79..36262b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,10 +31,19 @@ jobs: server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: GPG_PASSPHRASE + gpg-passphrase-env-var: GPG_PASSPHRASE + + # The hosted runners moved to Maven 3.10, whose local-repository changes make + # central-publishing-maven-plugin 0.11.0 stage bookkeeping files into the bundle, + # which Central rejects ("Bundle has content that does NOT have a .pom file"). + # Pin 3.9 until the plugin catches up. See apache/maven#13388. + - name: Pin Maven 3.9 + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.11 - name: Set release version - run: mvn versions:set -DnewVersion=${{ inputs.version }} --batch-mode + run: mvn versions:set -DnewVersion=${{ inputs.version }} -DgenerateBackupPoms=false --batch-mode # deploy runs the full lifecycle, so this builds, tests, signs and # publishes in one pass.