我尝试将sbt更新为0.13.15,现在每当我尝试运行sbt时,我都会收到以下错误。我没有落后任何代理和错误下载中提到的.pom链接在浏览器中没有问题。升级之前sbt 0.13.7对我没有任何问题。我在Windows 10上。
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Getting org.scala-sbt sbt 0.13.15 (this may take some time)...
:: problems summary ::
:::: WARNINGS
problem while downloading module descriptor: https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivy-2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4.pom: Read timed out (19292ms)
module not found: org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4
==== local: tried
C:\Users\Kamil\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4\ivys\ivy.xml
-- artifact org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4!ivy.jar:
C:\Users\Kamil\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4\jars\ivy.jar
==== local-preloaded-ivy: tried
file:/C:/Users/Kamil/.sbt/preloaded/org.scala-sbt.ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivys/ivy.xml
==== local-preloaded: tried
file:/C:/Users/Kamil/.sbt/preloaded/org/scala-sbt/ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivy-2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4.pom
-- artifact org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4!ivy.jar:
file:/C:/Users/Kamil/.sbt/preloaded/org/scala-sbt/ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivy-2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivy-2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4.pom
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt.ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivys/ivy.xml
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt.ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivys/ivy.xml
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4: not found
Error during sbt execution: Error retrieving required libraries
Error: Could not retrieve sbt 0.13.15
答案 0 :(得分:2)
如果您正在做一些特别的事情(例如使用本地工件服务器,例如 Nexus 或 Artifactory <,则您只需要创建一个.sbt\repositories
文件/ em>的)。也许你的安装有点不对劲?尝试使用以下内容创建此文件(C:\Users\Kamil\.sbt\repositories
),然后重试您的构建。
[repositories]
local
sbt-releases-repo: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
sbt-plugins-repo: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
maven-central: http://repo1.maven.org/maven2/