如何列出sbt中所有未解决的依赖项?

时间:2014-08-15 04:45:59

标签: scala dependencies sbt

运行sbt compile后,我可以长时间记录未解析的依赖项错误,但是可以看到所有未解析的依赖项的列表?

1 个答案:

答案 0 :(得分:0)

如" Unresolved Dependencies in sbt"或Unresolved dependency SBT 0.13.0 after update running sbt 中所示,没有命令行参数,这意味着从交互式开始mode将打印未解析的依赖项。

例如:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.play#sbt-link;2.2.0: not found
[warn]  :: com.typesafe.play#play-exceptions;2.2.0: not found
[warn]  :: com.typesafe.play#routes-compiler_2.10;2.2.0: not found
[warn]  :: com.typesafe.play#templates-compiler_2.10;2.2.0: not found
[warn]  :: com.typesafe.play#console_2.10;2.2.0: not found
[warn]  :: net.contentobjects.jnotify#jnotify;0.94: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

Adding some repo in the ~/.sbt/repositories可以凝固。