Skip to content

fix(build): set Central deploymentName in bom module too - #2069

Merged
NiklasHerrmann21 merged 1 commit into
mainfrom
fix/bom-central-deployment-name
Nov 6, 2026
Merged

NiklasHerrmann21 merged 1 commit into
mainfrom
fix/bom-central-deployment-name

Conversation

@NiklasHerrmann21

Copy link
Copy Markdown
Contributor

What

Set the Central deploymentName in the bom module as well, so the aggregated Maven Central upload is actually named.

Why

central-publishing-maven-plugin is declared twice (both in the release profile, both extensions=true): once in the root POM and once in bom/pom.xml. The reactor performs a single aggregated upload, and bom is the last module in <modules>, so its plugin configuration is the one that takes effect for the upload. That configuration had no deploymentName, so the name configured in the root POM was dropped and the Central Portal kept showing the auto-generated Deployment <id>.

Change

Add the same deploymentName to bom/pom.xml:

<deploymentName>cloud-security-services-integration-library-${project.version}</deploymentName>

Notes

  • deploymentName is applied at upload time and is not retroactive — the name shows up on the next publish, as cloud-security-services-integration-library-<version>.
  • It only labels the deployment in the Portal's Deployments list; artifact coordinates (groupId:artifactId:version) are unaffected.

The central-publishing-maven-plugin is declared in both the root POM and the
bom module. The aggregated Central upload is performed by the bom module (last
in the reactor), whose plugin configuration had no deploymentName, so the name
configured in the root POM was dropped and the Central Portal showed the
auto-generated 'Deployment <id>'. Add the same deploymentName to the bom
module so the deployment is named cloud-security-services-integration-library-<version>.
@NiklasHerrmann21
NiklasHerrmann21 merged commit adf7e57 into main Nov 6, 2026
4 checks passed
@NiklasHerrmann21
NiklasHerrmann21 deleted the fix/bom-central-deployment-name branch November 6, 2026 12:49
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