From ed1fb1587e784a31705f793cccc3202e58bd9aad Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 6 Nov 2026 17:56:47 +0100 Subject: [PATCH] ci: Pin Maven 3.9.16 in publish job Maven 3.10 (now default on GitHub runners) leaves maven-metadata-local.xml in the central-publishing bundle, which Maven Central rejects with "Bundle has content that does NOT have a .pom file". Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/maven.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 597e05e..2fa71a3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -103,6 +103,19 @@ jobs: server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + # Maven 3.10 leaves maven-metadata-local.xml in the central-publishing + # bundle, which Maven Central rejects ("Bundle has content that does NOT + # have a .pom file"). Pin Maven 3.9.x until the plugin handles it. + - name: Install Maven 3.9.x + env: + MAVEN_VERSION: 3.9.16 + MAVEN_SHA512: 831a8591fe20c8243b1dbe7d71e3244f31d1665b0804b2e825e38cbbe5ce0cafb8338851f90780735568773e0a6cd07bbec107cda0b896b008b861075358b6f6 + run: | + curl -fsSLo maven.tar.gz "https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" + echo "${MAVEN_SHA512} maven.tar.gz" | sha512sum -c - + tar -xzf maven.tar.gz -C "$RUNNER_TEMP" + rm maven.tar.gz + echo "$RUNNER_TEMP/apache-maven-${MAVEN_VERSION}/bin" >> "$GITHUB_PATH" - name: Validate release uses: onfido/onfido-actions/release-check@main - name: Install gpg secret key