我正在尝试按照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
答案 0 :(得分:3)
在构建sbt 0.12-RC1之前,您需要安装sbt 0.12-M2。
这是在“Build from source”第3点:
请注意,sbt始终使用之前的稳定版本构建。例如, 0.12分支使用0.12.0-M2 构建,v0.11.2标记使用0.11.1构建,v0.11.0标记使用0.10.1构建。
我想你只需从their repository下载就会感觉更好。