Skip to content

Commit da5207b

Browse files
oryan-blockclaude
andcommitted
Publish releases with Maven 3.9
The runner image now ships Maven 3.10, under which central-publishing-maven-plugin 0.11.0 adds maven-metadata-local.xml and _remote.repositories files to the bundle. Central rejects the bundle because the metadata sits in a directory without a .pom file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f94fd44 commit da5207b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
server-password: MAVEN_PASSWORD
3636
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
3737
gpg-passphrase: GPG_PASSPHRASE
38+
- name: Setup Maven 3.9
39+
# Under Maven 3.10, central-publishing-maven-plugin 0.11.0 adds maven-metadata-local.xml to the bundle, which Central rejects
40+
run: |
41+
curl -sSfL https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.tar.gz | tar xz -C "$RUNNER_TEMP"
42+
echo "$RUNNER_TEMP/apache-maven-3.9.16/bin" >> "$GITHUB_PATH"
3843
- name: Publish release
3944
run: bash github-build.sh
4045
env:

0 commit comments

Comments
 (0)