Good day to you, Andrés, The maven-dependency-plugin generates a nice dependency tree report but like you said, it cannot show you duplicated depenendencies.
You can however use the -X option and trace through the debug logs. You can see there when it sees a duplication, and how it resolves it ( or at least, which one it will use ). Cheers, Franz Andrés Viedma wrote: > > Hi all, > > I'm developing a plugin and I need to know if one of the target project > dependencies depends on another one. > > I've seen that a MavenProject object contains a list of Artifact objects > which contains a "dependency trail", but the problem is that this trail > misses the information of "duplicated" dependencies. For example, if we > have > three projects a, b, c, with these dependencies: > a -> b > a -> c > b -> c > > The list of Artifact's for project "a" (with each dependency trail), is: > b (a -> b) > c (a -> c) > > The b->c dependency has been lost, and so I can't know if there's a > relationship between b and c. > > So, my question is: how can I know, when running a mojo, if one of my > dependencies depends on another one?. > > Thanks in advance, > > Andrés > > -- View this message in context: http://www.nabble.com/-m2-plugin--Obtaining-dependencies-tree-tf2857435s177.html#a8073691 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
