Sbt 检索所需库时出错 [英] Sbt Error retrieving required libraries

查看:32
本文介绍了Sbt 检索所需库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将 sbt 更新到 0.13.15,现在每当我尝试运行 sbt 时,都会出现以下错误.我不支持任何代理,错误下载中提到的 .pom 链接在浏览器中没有问题.在升级 sbt 0.13.7 之前对我来说没有任何问题.我使用的是 Windows 10.

I tried updating sbt to 0.13.15, and now whenever i try to run sbt i get the following error. I'm not behind any proxy and the .pom link mentioned in the error downloads without a problem in the browser. Before upgrade sbt 0.13.7 worked without any problem for me. I'm on 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

推荐答案

如果您正在做一些特殊的事情(例如使用本地工件),您应该只需要创建一个 .sbt\repositories 文件服务器,例如 NexusArtifactory).也许你的安装有点错误?尝试使用以下内容创建此文件 (C:\Users\Kamil\.sbt\repositories),然后重试构建.

You should only need to create a .sbt\repositories file if you're doing something special (such as using a local artifact server, such as Nexus or Artifactory). Maybe your installation went a little awry? Try creating this file (C:\Users\Kamil\.sbt\repositories) with the following contents, then retry your build.

[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/

这篇关于Sbt 检索所需库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆