Skip to content

fix(maven): name the central deployment after its coordinates - #654

Merged
andiwand merged 1 commit into
mainfrom
fix/maven-deployment-name
Aug 2, 2026
Merged

fix(maven): name the central deployment after its coordinates#654
andiwand merged 1 commit into
mainfrom
fix/maven-deployment-name

Conversation

@andiwand

@andiwand andiwand commented Aug 2, 2026

Copy link
Copy Markdown
Member

In the Central Portal, the odr-core-java upload showed up as Deployment while the AAR showed up as app.opendocument-odr-core-android-6.2.0 — so of the two deployments awaiting a manual release, only one said what it was.

central-publishing-maven-plugin declares its default as the literal string:

<deploymentName implementation="java.lang.String" default-value="Deployment">

and jni/pom.xml never overrode it.

The AAR gets a real name because vanniktech's plugin builds one. Its MavenCentralBuildService concatenates group, artifactId and version with the recipe \1-\1-\1hyphens, not colons, which is why this uses that separator rather than the more usual group:artifact:version.

Verified

mvn help:effective-pom -Pcentral -Drevision=6.2.0 resolves it, confirming ${project.version} reaches through the CI-friendly ${revision} indirection:

<deploymentName>app.opendocument-odr-core-java-6.2.0</deploymentName>

against the AAR's app.opendocument-odr-core-android-6.2.0.

Cosmetic — it changes the portal label only, not coordinates, artifacts or the published pom. Takes effect on the next release; v6.2.0 is already out.

🤖 Generated with Claude Code

The plugin's default deployment name is the literal "Deployment", so the
portal listed the jar and the AAR as one named upload and one anonymous
one. The AAR's plugin builds `group-artifactId-version` for itself; this
is the same shape.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YSePnR4Jcj5cq3H1D11xcd
@andiwand
andiwand merged commit b538931 into main Aug 2, 2026
33 checks passed
@andiwand
andiwand deleted the fix/maven-deployment-name branch August 2, 2026 13:47
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.

1 participant