Repository navigation
Fix Maven Central publishing under Maven 3.10 - #148
Conversation
Maven 3.10 on the GitHub runner makes 0.10.0 put maven-metadata-local.xml
and _remote.repositories into the bundle, and Central rejects it
("Bundle has content that does NOT have a .pom file"), which is why
2.5.0 never published. 0.12.0 leaves them out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium risk] The review reported no findings, but it could not read the central-publishing-maven-plugin 0.12.0 release notes, so the claim that 0.12.0 stops adding maven-metadata-local.xml and _remote.repositories to the bundle is unverified upstream. The author's local Docker check supports it but skipped signing and the upload, so the first real release run is the first full test. The change is a 0.x minor step of a build-time publishing plugin that a revert undoes, which rates medium. SummaryBumps central-publishing-maven-plugin from 0.10.0 to 0.12.0 This is a minor step of a build-time plugin in pom.xml. The existing configuration (publishingServerId, autoPublish, waitUntil) is unchanged, and publish.yaml runs What's good
Review context · 1/5 commands
Reviews (1) · Last reviewed commit: "Bump central-publishing-maven-plugin to..." · claude-sonnet-5-5 |
Why?
2.5.0 and 2.6.0 never reached Maven Central, so it still stops at 2.4.0.
Bundle has content that does NOT have a .pom file: com/mailersend/java-sdk(run). Between the 2.4.0 and 2.5.0 releases the GitHub runner image moved to a newer Maven, and 2.5.0's run used Maven 3.10's default plugins (install3.1.4 → 3.2.0). With that Maven, central-publishing-maven-plugin 0.10.0 putscom/mailersend/java-sdk/maven-metadata-local.xmland_remote.repositoriesfiles into the bundle.Changes
pom.xml: central-publishing-maven-plugin 0.10.0 → 0.12.0. The existing configuration is unchanged and 0.12.0 accepts it.Risks
Performance impact
None. Build-time plugin only; the SDK code is unchanged.
Security impact
None.
How to QA
Checked locally in Docker on
mainwithmvn clean deploy -DskipTests -Dgpg.skip -DcentralBaseUrl=http://127.0.0.1:9, so the bundle is built and the upload fails locally:maven-metadata-local.xmland_remote.repositories(the 2.5.0 setup, which was rejected)After the release, the Maven Publish run ends with "was successfully published", and https://repo1.maven.org/maven2/com/mailersend/java-sdk/2.6.0/java-sdk-2.6.0.pom returns 200.
How to release
gh release delete v2.6.0 --repo mailersend/mailersend-java --cleanup-tag --yesmain:gh release create v2.6.0 --repo mailersend/mailersend-java --target main --generate-notesRollback strategy
Screenshots, recordings
N/A
I used AI to generate parts of this PR
Yes