如何在 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 inspect tree干净
将:
When run from the command line, each argument sent to sbt is supposed to be a command, so sbt inspect tree clean
will:
- 运行
inspect
命令, - 然后运行
tree
命令, - 然后是
clean
命令
- run the
inspect
command, - then run the
tree
command, - then the
clean
command
这显然失败了,因为 inspect
需要一个参数.这会做你想做的事:
This obviously fails, since inspect
needs an argument. This will do what you want:
sbt "inspect tree clean"
这篇关于如何在 sbt 中查看依赖树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文