Display complete dependency tree with Leiningen

拟墨画扇 提交于 2019-12-02 22:11:11

You can generate Maven's POM out of Leiningen's project definition and then use Maven's dependency:tree plugin with a verbose option, like this:

$ lein pom
$ mvn dependency:tree -Dverbose=true 

This will list dependencies omitted for various reasons, e.g.:

|  +- ring:ring-core:jar:1.4.0:compile
|  |  +- (org.clojure:clojure:jar:1.5.1:compile - omitted for conflict with 1.7.0)
|  |  +- (org.clojure:tools.reader:jar:0.9.1:compile - omitted for conflict with 0.10.0-alpha3)
|  |  +- (ring:ring-codec:jar:1.0.0:compile - omitted for duplicate)

For more options to dependency:tree see its documentation.

This can now be done using leiningen by lein deps :tree. Note the space between deps and :tree.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!