From 1a4f3b0edbc6932217ac68c98735477588691e9a Mon Sep 17 00:00:00 2001 From: Julian Matschinske Date: Wed, 4 Nov 2026 07:04:40 +0100 Subject: [PATCH] Pin compatible Maven for immutable Java release publication --- .github/workflows/publish-java.yml | 15 +++++++++++++++ docs/releases/0.7.0.md | 11 +++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/publish-java.yml b/.github/workflows/publish-java.yml index f389799..45aaf9a 100644 --- a/.github/workflows/publish-java.yml +++ b/.github/workflows/publish-java.yml @@ -151,6 +151,21 @@ jobs: with open(os.environ["GITHUB_ENV"], "a") as f: f.write("BITWIRE_VERSION=" + version + "\n") PY + - name: Use the Maven version supported by the immutable release publisher + # The tagged POM pins Central publisher 0.11.0. Maven 3.10 adds local + # repository metadata that this plugin incorrectly puts in its bundle. + # Keep the tagged POM unchanged and use a verified Maven 3.9 distribution. + shell: bash + run: | + set -euo pipefail + archive="$RUNNER_TEMP/apache-maven-3.9.16-bin.tar.gz" + curl --fail --silent --show-error --location \ + https://archive.apache.org/dist/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz \ + --output "$archive" + echo "831a8591fe20c8243b1dbe7d71e3244f31d1665b0804b2e825e38cbbe5ce0cafb8338851f90780735568773e0a6cd07bbec107cda0b896b008b861075358b6f6 $archive" | sha512sum --check --strict + tar -xzf "$archive" -C "$RUNNER_TEMP" + "$RUNNER_TEMP/apache-maven-3.9.16/bin/mvn" --version + echo "$RUNNER_TEMP/apache-maven-3.9.16/bin" >> "$GITHUB_PATH" - uses: actions/setup-java@v6 with: distribution: temurin diff --git a/docs/releases/0.7.0.md b/docs/releases/0.7.0.md index 9ee30cc..a35d19a 100644 --- a/docs/releases/0.7.0.md +++ b/docs/releases/0.7.0.md @@ -27,3 +27,14 @@ consumers, release rehearsal and public installed-consumer verification. This follows the owner's 4 November 2026 coordinated migration instruction. Source delivery and package publication do not deploy existing services. + +## Java publication toolchain + +The immutable tag pins Central publishing plugin 0.11.0. The Java publication +workflow uses Apache Maven 3.9.16, verified against its published SHA-512, because +that plugin includes unwanted repository metadata when run with Maven 3.10. +Central rejected deployment `9255d311-0a31-4072-84a6-12aea33f3cbe` for that reason. +[Sonatype documents this incompatibility and its plugin fix](https://central.sonatype.org/publish/publish-portal-maven/#0120-13-oct-2026). +The workflow correction retains the tagged POM, package source, signing checks +and fresh public-registry consumer gate. Future source releases can update the +publishing plugin as part of their own reviewed package change.