maven-dependency-plugin
maven-dependency-plugin copied to clipboard
[MDEP-976] artifactId is not guaranteed to be globally unique
Gili opened MDEP-976 and commented
The copy-dependencies Mojo incorrectly assumes that a dependency's artifactId is globally unique. If a project depends on two different groupIds that happen to have the same artifactId then one dependency will overwrite the other.
Consider adding ${groupId} to the default output filename and/or add an option for doing so in case users wish to retain backwards compatibility.
Affects: 3.8.1
Remote Links:
Gili commented
To be honest, I wasn't even aware of "prependGroupId" existed until the PR was filed. Why not just flip the default value to "true" then? Users who wish to retain the old behavior can explicitly set it to "false".