如何查看sbt中的依赖树? [英] How to see dependency tree in sbt?
本文介绍了如何查看sbt中的依赖树?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试检查文档:
sbt inspect tree clean
但是我收到此错误:
[error] inspect usage:
[error] inspect [uses|tree|definitions] <key> Prints the value for 'key', the defining scope, delegates, related definitions, and dependencies.
[error]
[error] inspect
[error] ^
怎么了?为什么SBT不构建树?
What is wrong? Why doesn't SBT build the tree?
推荐答案
从命令行运行时,每个参数发送到sbt应该是命令,因此 sbt检查树的清理
将:
- 运行
检查
命令, - 然后运行
tree
命令, - 然后使用
clean
命令
- run the
inspect
command, - then run the
tree
command, - then the
clean
command
这显然失败了,因为检查
需要一个参数。这将满足您的要求:
This obviously fails, since inspect
needs an argument. This will do what you want:
sbt "inspect tree clean"
这篇关于如何查看sbt中的依赖树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文