Repository navigation
ci: Pin Maven 3.9.16 in publish job - #191
Merged
Merged
Conversation
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>
dvacca-onfido
force-pushed
the
fix/pin-maven-wrapper
branch
from
November 6, 2026 16:56
f8e3191 to
ed1fb15
Compare
DavidMealha-Onfido
approved these changes
Nov 9, 2026
sanchapereira
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The v7.3.0 release failed to publish to Maven Central (run 42250637963):
The POM is present in the bundle. The cause is Maven 3.10, now the default on GitHub runners. It leaves
maven-metadata-local.xmlat the artifactId level of thecentral-publishing-maven-pluginbundle, and Maven Central rejects that file. This is a known upstream issue (sonatype-nexus-community/central-publishing-maven-plugin#10, mavenplugins/central-publishing-maven-plugin#79).Fix
In the
publishjob only, download Maven 3.9.16 from the Apache archive, verify its SHA-512 checksum, and put it onPATHahead of the runner's Maven. Build and test steps keep using the runner's default Maven, since the bug only affects building the bundle.Verification
.pom,.jar,-sources.jar,-javadoc.jar) and nomaven-metadata-local.xml.🤖