【问题标题】:Why does sbt report "Error: Could not retrieve sbt 0.13.11"?为什么 sbt 报告“错误:无法检索 sbt 0.13.11”?
【发布时间】:2016-10-03 11:07:35
【问题描述】:

在一个 Scala 项目中,我将 build.properties0.13.8 更新为 0.13.11。那个“破坏”的 sbt 因为它不再启动,即它无法下载 0.13.11 jars?! sbt 打印一个尝试过的 repo 列表,但 repo.typesafe.com 不是其中之一。

我本地安装的 sbt 是 0.13.8

由于某种原因,scala-sbt jar 在 Typesafe 的 Bintray 中不再可用。最大的版本是 0.13.9。

我知道获取它的地方是https://repo.typesafe.com/typesafe/ivy-releases/,但是我如何告诉 sbt 使用这个 repo?

我已经试过了:

  • 将解析器添加到plugins.sbt
  • 将解析器添加到build.sbt
  • 将回购添加到.sbt/repositories

但我无法让它工作。

如何告诉 sbt 从哪里获取二进制文件?

【问题讨论】:

标签: scala sbt


【解决方案1】:
  1. 确保您使用的 sbt(启动器)与项目中使用的版本相同或更高。

    在空目录下执行sbt about,找到[info] This is sbt X.Y.X

  2. 确保您不使用设置用于解析工件的存储库的~/.sbt/repositories 文件。

【讨论】:

    【解决方案2】:

    尝试将您的 https 代理信息设置为 http.proxyHost 和 http.proxyPort。这为我解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-02
      • 2015-06-19
      • 1970-01-01
      • 2016-09-23
      • 1970-01-01
      • 2015-02-23
      • 2019-02-10
      相关资源
      最近更新 更多