问题
How could one view the dependency tree (along with the transitive dependencies) and the reasoning for them being included, or excluded from the build?
In Maven one can do it like:
mvn dependency:tree -Ddebug
From what I understand, Ivy can produce dependency reports in an XML/HTML format, but it doesn't seem to be the same. (Correct me, if I am wrong).
Also, is this kind of thing available from the standalone Ivy (not being invoked from within an Ant context)?
Thanks!
回答1:
Take a look at <ivy:report>. This will create a HTML based report of the dependencies, and it will also create a graphml file that you can use yed to produce a report, or create a dot file and use graphviz.
回答2:
Have a look at <ivy:dependencytree /> that will display the dependency tree in the console.
来源:https://stackoverflow.com/questions/15002812/what-is-the-analogue-of-mvn-dependencytree-in-ivy