duplicate-finder-maven-plugin icon indicating copy to clipboard operation
duplicate-finder-maven-plugin copied to clipboard

Display dependency paths of conflicting artifacts

Open theHilikus opened this issue 6 years ago • 1 comments

It would be a nice feature if once a duplicate is found, the transitive path to the artifact was displayed as well in the console and/or the report. Right now you have to rely on separate plugins (maven-dependency-plugin with obscure parameters to filter irrelevant dependencies or crazy greping) to understand why a conflicting artifact is there in the first place

I'm not sure about the formatting since the line might be super long then, but maybe something like

  [WARNING] Found duplicate and different classes in [a -> b -> c -> com.google.api.grpc:proto-google-cloud-logging-v2:0.81.0, d -> e -> f -> com.google.api.grpc:proto-google-common-protos:1.16.0]:

If not, just a new log line with the path to each artifact

theHilikus avatar Oct 22 '19 16:10 theHilikus

that is a good suggestion. Thank you. I will see if that can be implemented in a reasonable way. I can see challenges with dependencies that have multiple paths; maybe just highlighting what dependency brought a specific conflict in.

hgschmie avatar Oct 22 '19 21:10 hgschmie