Skip to content

Commit 7ec5ecd

Browse files
committed
ci(release): pin Maven 3.9 so the Central bundle carries no staging metadata
1 parent 694a741 commit 7ec5ecd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ jobs:
2626
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2727
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2828

29+
# Maven 3.10 writes maven-metadata-local.xml into the Central staging repo; Central then
30+
# rejects the bundle ("content that does NOT have a .pom file"). Pin 3.9 until the
31+
# central-publishing-maven-plugin handles it.
32+
- name: Install Maven 3.9
33+
run: |
34+
curl -fsSL https://archive.apache.org/dist/maven/maven-3/3.9.11/binaries/apache-maven-3.9.11-bin.tar.gz | tar xz -C "$RUNNER_TEMP"
35+
echo "$RUNNER_TEMP/apache-maven-3.9.11/bin" >> "$GITHUB_PATH"
36+
2937
- name: Run tests
30-
run: mvn -B --no-transfer-progress verify
38+
run: mvn -B --no-transfer-progress -v && mvn -B --no-transfer-progress verify
3139

3240
- name: Publish to Maven Central
3341
run: mvn -B --no-transfer-progress -Prelease -DskipTests deploy

0 commit comments

Comments
 (0)