Skip to content

ci: Pin Maven 3.9.16 in publish job - #191

Merged
dvacca-onfido merged 1 commit into
masterfrom
fix/pin-maven-wrapper
Nov 9, 2026
Merged

dvacca-onfido merged 1 commit into
masterfrom
fix/pin-maven-wrapper

Conversation

@dvacca-onfido

@dvacca-onfido dvacca-onfido commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The v7.3.0 release failed to publish to Maven Central (run 42250637963):

Deployment 431475fa-5947-4bf0-9189-8caca8ee7f2a failed
common:
 - Bundle has content that does NOT have a .pom file: com/onfido/onfido-api-java

The POM is present in the bundle. The cause is Maven 3.10, now the default on GitHub runners. It leaves maven-metadata-local.xml at the artifactId level of the central-publishing-maven-plugin bundle, 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 publish job only, download Maven 3.9.16 from the Apache archive, verify its SHA-512 checksum, and put it on PATH ahead 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

  • Checked the Maven 3.9.16 tarball against the SHA-512 in the workflow.
  • Built the release bundle locally with Maven 3.9.16, with GPG signing skipped and dummy Central credentials, so the upload itself was not tested. The bundle contains only the version-level artifacts (.pom, .jar, -sources.jar, -javadoc.jar) and no maven-metadata-local.xml.

🤖

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 dvacca-onfido changed the title ci: Pin Maven 3.9.16 via Maven Wrapper ci: Pin Maven 3.9.16 in publish job Nov 6, 2026
@dvacca-onfido dvacca-onfido self-assigned this Nov 6, 2026
@dvacca-onfido
dvacca-onfido merged commit c68d852 into master Nov 9, 2026
6 of 7 checks passed
@dvacca-onfido
dvacca-onfido deleted the fix/pin-maven-wrapper branch November 9, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants