-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Fix exception caused by duplicate dependencies in consumer pom #11283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix exception caused by duplicate dependencies in consumer pom #11283
Conversation
| if (managementKey == null) { | ||
| managementKey = (getGroupId() + ":" + getArtifactId() + ":" + getType() + (getClassifier() != null ? ":" + getClassifier() : "")).intern(); | ||
| managementKey = (getGroupId() + ":" + getArtifactId() + ":" + getType() | ||
| + (getClassifier() != null && !getClassifier().isEmpty() ? ":" + getClassifier() : "")).intern(); |
There was a problem hiding this comment.
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+
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ... 😆
|
Thanks for fast turnaround @gnodet |
|
I tested a build from this branch and now build passes :) |
…e#11283) Fixes apache#11280 (cherry picked from commit 1a02597)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Fixes #11280