【问题标题】:How list all unresolved dependencies in sbt?如何列出 sbt 中所有未解决的依赖项?
【发布时间】:2014-10-08 21:24:11
【问题描述】:

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

【问题讨论】:

  • 如果你只运行sbt,它不是在一个格式化的表格中列出了所有UNRESOLVED DEPENDENCIES吗?我上次使用它已经有一段时间了,但回想一下这样的功能......

标签: scala dependencies sbt


【解决方案1】:

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

例如:

[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可以凝胶了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-07-18
    • 2016-01-22
    • 2016-09-14
    • 2014-12-17
    • 2016-06-19
    • 1970-01-01
    • 2016-06-04
    • 1970-01-01
    相关资源
    最近更新 更多