Considering this set..
com.a:a
<project>
...
<groupId>com.a</groupId>
<artifactId>a</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>a's project</name>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.b</groupId>
<artifactId>b</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.c</groupId>
<artifactId>c</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
...
</project>
com.d:d
<project>
...
<groupId>com.d</groupId>
<artifactId>d</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>d's project</name>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.b</groupId>
<artifactId>b</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.c</groupId>
<artifactId>c</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
...
</project>
com.me:myproj
<project>
...
<groupId>com.me</groupId>
<artifactId>myproj</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>myproj's project</name>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.a</groupId>
<artifactId>a</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.d</groupId>
<artifactId>d</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
...to insert...
</dependencies>
<dependencyManagement>
...
</project>
from
http://maven.apache.org/guides/introduction/introduction-to-dependency-m
echanism.html
i concluded that if i added in the ...to insert... section
<dependency>
<groupId>com.b</groupId>
<artifactId>b</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
a. it would resolve the problem of determining which com.b to use in the
whole myproj's project build, i.e. b-1.1.jar
b. it would build a-1.0.jar that the myproj needs with b-1.1.jar in it
and not b-1.0.jar.
am i correct?
>
> No... your definitions in dependencyManagement should be "closer" and
> take precedence over the ones coming from transitive dependencies.
>
> If that's not the case, construct a set of poms in a sample project so
> we can take a look.
>
> --
> Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]