Hi,

i've played around with the maven-dependency-plugin to see which artifacts are in my project via:

mvn dependency:tree -Dverbose=true

which results into the following output:

.....
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ first-project ---
[INFO] com.soebes.training.test:first-project:jar:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:4.8:compile
[INFO] \- org.testng:testng:jar:6.5.2:compile
[INFO]    +- (junit:junit:jar:4.10:compile - omitted for conflict with 4.8)
[INFO]    +- org.beanshell:bsh:jar:2.0b4:compile
[INFO]    +- com.beust:jcommander:jar:1.12:compile
[INFO]    \- org.yaml:snakeyaml:jar:1.6:compile
[INFO]

The output above says that the transitive dependency of testng junit:junit:jar:4.10 has not made the way into my project, cause i defined an other version (4.8).

Ok. Now i checked to use the newest version maven-dependency-plugin via the following call:

mvn org.apache.maven.plugins:maven-dependency-plugin:2.5.1:tree -Dverbose=true

which produces the following output:

....
[INFO] --- maven-dependency-plugin:2.5.1:tree (default-cli) @ first-project ---
[INFO] com.soebes.training.test:first-project:jar:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:4.8:compile
[INFO] \- org.testng:testng:jar:6.5.2:compile
[INFO]    +- org.beanshell:bsh:jar:2.0b4:compile
[INFO]    +- com.beust:jcommander:jar:1.12:compile
[INFO]    \- org.yaml:snakeyaml:jar:1.6:compile
[INFO]

which prints out information, but NOT the information about the clash of the version as in the older version of the maven-dependency-plugin....and in my opinion wrong output, cause missing the transitive dependency of testng.

After rereading the docs of the dependency-plugin i found that the option -Dverbose=true is deprecated and tested it without but this doesn't change anything.


So the question is: Is this behaviour known and intentionally ?

Kind regards
Karl-Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to