我已經經歷了幾乎所有與在stackoverflow上安裝Windows上的窗口(有相同的問題與我有幾個人)有關的sbt。但是,答案似乎不清楚/不可重現在我的機器上。在Windows上的sbt 0.13 - 無法訪問存儲庫
這裏是我做過什麼:
- 下載SBT-0.13.13這個site
- 成功安裝並設置PATH
- 嘗試
sbt version
,看是否安裝成功。錯誤 返回(在這篇文章的末尾)
有幾件事情,我們應該知道:
我已經有JDK
我沒有在我的電腦上使用代理服務器(使用
netsh winhttp show proxy
進行測試)有人說這是因爲sbt不支持ASCII字符 - 但是 解決方案不明確
problems summary WARNINGS module not found: org.fusesource.jansi#jansi;1.11 local: tried C:\Users\buidu\.ivy2\local\org.fusesource.jansi\jansi\1.11\ivys\ivy.xml -- artifact org.fusesource.jansi#jansi;1.11!jansi.jar: C:\Users\buidu\.ivy2\local\org.fusesource.jansi\jansi\1.11\jars\jansi.jar ==== Maven Central: tried https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom -- artifact org.fusesource.jansi#jansi;1.11!jansi.jar: https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar ==== typesafe-ivy-releases: tried https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml ==== sbt-ivy-snapshots: tried https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml UNRESOLVED DEPENDENCIES org.fusesource.jansi#jansi;1.11: not found Server access Error: Permission denied: connect url=https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom Server access Error: Permission denied: connect url=https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar Server access Error: Permission denied: connect url=https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml Server access Error: Permission denied: connect url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml
我自己也有這個錯誤,但我是在公司防火牆的後面,我需要爲每個需要達到的存儲庫提供一個內部替代品。 – radumanolescu
例如,我甚至無法ping通repo1.maven.org,所以我需要定義'-Dsbt.override.build.repos = true -Dsbt.repository.config =「someDir/repositories.sbt」'。你是從Windows命令行還是從Cygwin bash運行?您是否嘗試指定'sbt.bat'的完整路徑,以確保您正在執行該文件? – radumanolescu
我可以ping那個網站,夥伴。我也嘗試了'sbt.bat'的完整路徑,但我仍然收到相同的錯誤 –