scala - 由于 Unresolved 依赖关系,无法构建 sbt 0.12.0-RC1

标签 scala build sbt

我正在尝试按照 https://github.com/harrah/xsbt 的说明构建 sbt 0.12.0-RC1信,但它无法下载先前版本的 sbt。

Getting org.scala-sbt sbt_2.9.1 0.12.0-M2 ...

:: problems summary ::
:::: WARNINGS
                module not found: org.scala-sbt#sbt_2.9.1;0.12.0-M2

        ==== local: tried

          /home/k/.ivy2/local/org.scala-sbt/sbt_2.9.1/0.12.0-M2/ivys/ivy.xml

        ==== typesafe-ivy-releases: tried

          http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt_2.9.1/0.12.0-M2/ivys/ivy.xml

        ==== Maven Central: tried

          http://repo1.maven.org/maven2/org/scala-sbt/sbt_2.9.1/0.12.0-M2/sbt_2.9.1-0.12.0-M2.pom

        ==== sonatype-snapshots: tried

          https://oss.sonatype.org/content/repositories/snapshots/org/scala-sbt/sbt_2.9.1/0.12.0-M2/sbt_2.9.1-0.12.0-M2.pom

                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: org.scala-sbt#sbt_2.9.1;0.12.0-M2: not found

                ::::::::::::::::::::::::::::::::::::::::::::::



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt_2.9.1;0.12.0-M2: not found
Error during sbt execution: Error retrieving required libraries
  (see /home/k/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.12.0-M2

最佳答案

在构建 sbt 0.12-RC1 之前,您需要安装 sbt 0.12-M2。

这是在“Build from source”点3下:

Note that sbt is always built with the previous stable release. For example, the 0.12 branch is built with 0.12.0-M2, the v0.11.2 tag is built with 0.11.1, and the v0.11.0 tag is built with 0.10.1.



我想只要从 their repository 下载,你会感觉更好。 .

关于scala - 由于 Unresolved 依赖关系,无法构建 sbt 0.12.0-RC1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11221464/

相关文章:

scala - 如何定义新设置并为任务设置其值?

unit-testing - SBT 中的基本测试功能

Scalaz monad 转换器。将 f1 :A => G[B], f2:B => G[C] 函数应用于 F[G[A]] 对象

scala - 带有三引号和多行的字符串插值

scala - 如何在 Scala 中使用 Monix 使用分页资源?

build - 如何获取使用hadoop1分类器构建的MRUnit 1.0.0-SNAPSHOT jar?

Scala 模式匹配打印精美

python - 如何使用Python请求模块和TeamCity API来触发构建?

c# - 编译器构建错误 : The call is ambiguous between the following methods or properties

scala - sbt 几乎每次都重新编译所有内容