2012-06-27 60 views
4

我試圖按照https://github.com/harrah/xsbt的指令構建sbt 0.12.0-RC1,但未能下載以前版本的sbt。由於未解決的依賴性,無法構建sbt 0.12.0-RC1

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 

回答

3

在構建sbt 0.12-RC1之前,您需要安裝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下載。