Suppose I have the following artifacts. I will omit groups for simplicity.
A:1.0
A:2.0
A:3.0
B:1.0 depends on A:1.0
C:1.0 depends on A:2.0
D:1.0 depends on B:1.0, C:1.0
I want D to use the latest version of A that is inherited from it's dependencies (not from repository). In this case it is 2.0.
How can I make this with
Maven 2 or Maven 3?