Windows上的sbt 0.13 - 无法访问存储库

问题描述 投票:2回答:3

我已经完成了与在stackoverflow上安装sbt相关的几乎所有内容(有很多人对我有同样的问题)。但是,我的机器上的答案似乎不清楚/不可复制。

这是我做的:

  1. 在此site上下载sbt-0.13.13
  2. 成功安装并设置PATH
  3. 尝试使用sbt version查看它是否已成功安装。返回错误(截至本文末尾)

我们应该知道一些事情:

  • 我已经有了JDK
  • 我不在我的电脑上使用Proxy(使用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
windows scala sbt
3个回答
1
投票

您可以尝试配置IPV4(而不是IPV6)的使用,如此问题的已接受答案中所述:

Error while importing sbt project , Server Access error, unresolved dependencies

setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true


0
投票

一个星期我一直在努力。唯一有帮助的是从默认位置卸载sbt(c:\ Program Files(x86)\ sbt)并将其重新安装到没有空格的某个位置(我已将其安装到d:\ sbt)。


0
投票

您是否尝试过查看sbt存储库文件(可能是c:\ users \ .sbt \ repositories,并指定http://而不是https://?

© www.soinside.com 2019 - 2024. All rights reserved.