Skip to content

fix(java): bump central-publishing-maven-plugin to 0.12.0 for Maven 3.10 - #29

Merged
mwaisaida-13 merged 1 commit into
mainfrom
fix/central-plugin-0.12.0
Oct 22, 2026
Merged

mwaisaida-13 merged 1 commit into
mainfrom
fix/central-plugin-0.12.0

Conversation

@mwaisaida-13

Copy link
Copy Markdown
Collaborator

What

Bumps central-publishing-maven-plugin from 0.11.0 to 0.12.0 (released 2026-10-13). One line in java/pom.xml.

Why

The java-v1.0.0 release run (https://github.com/aws/developer-toolkit-elasticache/actions/runs/39800947761) uploaded its bundle but the Central Portal rejected it:

Bundle has content that does NOT have a .pom file: software/amazon/elasticache/developer-toolkit-elasticache

The ubuntu-latest runner now ships Maven 3.10.0. Maven 3.10 names the staging-repository metadata file maven-metadata-local.xml and writes _remote.repositories markers; plugin 0.11.0 only strips Maven 3.9's maven-metadata-central-staging.xml, so the stray metadata file was bundled at the artifact level and failed validation. Nothing was published; 1.0.0 is still unused.

Reproduced locally with Maven 3.10.0 against an unreachable upload URL: the 0.11.0 bundle contains developer-toolkit-elasticache/maven-metadata-local.xml plus four _remote.repositories* files. With 0.12.0 the plugin logs Pre Bundling - deleted for the metadata file, the markers and .locks, and the bundle holds only the 20 expected files under 1.0.0/. Verified the same with Maven 3.9.16, which keeps working.

After merge

Delete the java-v1.0.0 release and tag, recreate them from the new main head, and run the release again. The failed deployment da3f4d5a can be dropped from the Portal's Deployments page or left; it does not block re-uploading 1.0.0.

The ubuntu-latest runner now ships Maven 3.10, which names the staging
metadata file maven-metadata-local.xml and writes _remote.repositories
markers. Plugin 0.11.0 only strips Maven 3.9's maven-metadata-central-staging.xml,
so the bundle reached the Central Portal with a stray file and failed validation
("Bundle has content that does NOT have a .pom file"). 0.12.0 removes all of
them before bundling.
@mwaisaida-13
mwaisaida-13 requested a review from a team as a code owner October 22, 2026 15:26
@mwaisaida-13
mwaisaida-13 merged commit 0317c8d into main Oct 22, 2026
14 checks passed
@mwaisaida-13
mwaisaida-13 deleted the fix/central-plugin-0.12.0 branch October 23, 2026 09:39
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.

2 participants