2013-05-21 87 views
2

請幫忙。org.scala-sbt#sbt; 0.12.3:找不到

我已經與奮戰了幾天,但仍然沒有運氣:( 嘗試添加一些「解析器」等,但我沒有移動沿任意方向。 貌似沒有org.scala-SBT#SBT ; 0.12.3 但我可以用我的瀏覽器訪問http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml (所以工件可用)

我是代理服務器BTW落後,但我有一種感覺,不要緊......

以下是日誌:

 

    [info] Loading project definition from C:\proj\blogger-example\project 
    [info] Updating {file:/C:/proj/blogger-example/project/}default-265363... 
    [info] Resolving com.github.mpeltonen#sbt-idea;1.4.0 ... 
    [info] Resolving commons-io#commons-io;2.0.1 ... 
    [info] Resolving org.scala-sbt#sbt;0.12.3 ... 
    [warn] module not found: org.scala-sbt#sbt;0.12.3 
    [warn] ==== typesafe-ivy-releases: tried 
    [warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml 
    [warn] ==== sbt-plugin-releases: tried 
    [warn] http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml 
    [warn] ==== local: tried 
    [warn] C:\Users\oabakumov\.ivy2\local\org.scala-sbt\sbt\0.12.3\ivys\ivy.xml 
    [warn] ==== Typesafe Repository: tried 
    [warn] http://repo.typesafe.com/typesafe/releases/org/scala-sbt/sbt/0.12.3/sbt-0.12.3.pom 
    [warn] ==== public: tried 
    [warn] http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.12.3/sbt-0.12.3.pom 
    [info] Resolving org.scala-lang#scala-library;2.9.2 ... 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] ::   UNRESOLVED DEPENDENCIES   :: 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] :: org.scala-sbt#sbt;0.12.3: not found 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    sbt.ResolveException: unresolved dependency: org.scala-sbt#sbt;0.12.3: not found 

我build.sbt

 
    name := "blogger-example" 

    version := "1.0" 

我的項目\ plugins.sbt文件:

 
    resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" 

    addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0") 
+3

請發佈您的build.sbt – alanlcode

+0

@alanlcode我編輯了我的文章(增加了build.sbt和plugins.sbt) –

回答

0

確保代理設置正確也是在shell(或命令提示符)。

E.g Windows 7的機器上,設置以下環境變量

HTTP_PROXY = myproxy.com:1234

+0

謝謝。我會檢查 –

+0

謝謝大家。代理毀了我的構建。我真的很討厭他們。 –

0

我睜開Update.log中的文件(名.bst \ boot目錄)今天。詳細的日誌幫助我正確地挖掘方向。我有HTTP 403錯誤(意思是「你無法訪問該資源」)。所以 - 問題出現在我的環境設置中(SBT設置 - sbtconfig.txt)。

所以...我的建議 - 當你的構建沒有任何明確的 - 去日誌文件。