RE: [M2] Dependency Management transitivity

2007-05-24 Thread Jörg Schaible
Siegmann Daniel, NY wrote on Wednesday, May 23, 2007 8:35 PM: > I know dependency management is inherited from parents, but is it also > used when the project is declared as a dependency of another project? With M206, yes, with older versions, no! > For example, lets say I have a dependency grap

Re: [M2] Dependency Management transitivity

2007-05-23 Thread Wayne Fay
IIRC, Maven will use the "nearest" version. In this case, if you're building D, C is closest which means A-2 will win. (If you test and find this is not the case, please reply back so we can perhaps analyze your poms a little more closely.) Ideally you'd declare a direct dependency on A (A-1 or A