Access the full dependency tree in a Mojo (Maven 3)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Access the full dependency tree in a Mojo (Maven 3)

Francois MAROT
Hi all,

I'm writing a plugin whose goal is to output a dependency graph *at the scm
level*. Meaning I don't really care about individual dependencies but about
the source control manager (git usually) where they come from.
I hope it will help to know in which order we must release all our internal
dependencies.
https://github.com/fmarot/scm-graph-maven-plugin

I've been inspired by the Maven Dependency tree plugin but it seems that
even this plugin does not handle full dependency tree anymore:
*
https://github.com/apache/maven-plugins/blob/b09c595a7cc6352aef55d2738d0382d0b8ef8c01/maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/tree/TreeMojo.java#L233
* https://issues.apache.org/jira/browse/MDEP-374
* https://issues.apache.org/jira/browse/MDEP-339
* ...
It used to use Maven2 specific dependency resolution which was now
inconsistent with Maven 3.

Does anybody know how I can get the full dependency graph in my own Mojo ?
It would make my plugin much more usefull !

Best regards
Francois



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

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