Skip to content

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Oct 16, 2025

Fixes #11280

if (managementKey == null) {
managementKey = (getGroupId() + ":" + getArtifactId() + ":" + getType() + (getClassifier() != null ? ":" + getClassifier() : "")).intern();
managementKey = (getGroupId() + ":" + getArtifactId() + ":" + getType()
+ (getClassifier() != null && !getClassifier().isEmpty() ? ":" + getClassifier() : "")).intern();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perso I prefer isBlank() since 11+

Copy link
Contributor Author

@gnodet gnodet Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure though... All the checks are done with isEmpty() in the code, so introducing a isBlank() at one point may lead to inconsistencies.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I agree, I just said "my 5 cents"

Copy link
Contributor Author

@gnodet gnodet Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More checks:

There's a single check for isBlank and I think it's wrong at this point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and it was probably me ... 😆

@gnodet gnodet added bug Something isn't working backport-to-4.0.x labels Oct 16, 2025
@wendigo
Copy link

wendigo commented Oct 16, 2025

Thanks for fast turnaround @gnodet

@wendigo
Copy link

wendigo commented Oct 16, 2025

I tested a build from this branch and now build passes :)

@gnodet gnodet merged commit 1a02597 into apache:master Oct 16, 2025
37 of 38 checks passed
@github-actions github-actions bot added this to the 4.1.0 milestone Oct 16, 2025
gnodet added a commit to gnodet/maven that referenced this pull request Oct 16, 2025
@gnodet
Copy link
Contributor Author

gnodet commented Oct 16, 2025

💚 All backports created successfully

Status Branch Result
maven-4.0.x

Questions ?

Please refer to the Backport tool documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-4.0.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maven 4.0.0 (latest snapshot) fails to install dependencies (install failed: Duplicate dependency)

3 participants