未解决的依赖项:org.scala-sbt#sbt;0.13:运行 sbt 0.13 时未找到?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19805102/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unresolved dependency: org.scala-sbt#sbt;0.13: not found when running sbt 0.13?
提问by アレックス
I have a Scala project consisting of a few ones. I decided to start using sbt 0.13. Here is ~/sbt/repositories:
我有一个由几个项目组成的 Scala 项目。我决定开始使用 sbt 0.13。这是~/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/
But still I get an error:
但我仍然收到一个错误:
Getting org.scala-sbt sbt 0.13 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13
==== local: tried
/home/alex/.ivy2/local/org.scala-sbt/sbt/0.13/ivys/ivy.xml
==== sbt-releases-repo: tried
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13/ivys/ivy.xml
==== sbt-plugins-repo: tried
http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.13/ivys/ivy.xml
==== maven-central: tried
http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13/sbt-0.13.pom
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.13: not found
Error during sbt execution: Error retrieving required libraries
(see /home/alex/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13
If I remove this file then the error remains.
如果我删除此文件,则错误仍然存在。
采纳答案by Matthew Farwell
Try using 0.13.1.
尝试使用0.13.1.
Put the following in project/build.properties:
将以下内容放入project/build.properties:
sbt.version=0.13.1
You will probably need the 0.13sbt launcher as well. See sbt Getting-Started - Setup
您可能还需要0.13sbt 启动器。请参阅sbt 入门 - 设置
回答by Ruurtjan Pul
I had the same issue when first installing openjdk-9-jdk and then openjdk-8-jdk on Ubuntu.
我在 Ubuntu 上首先安装 openjdk-9-jdk 然后 openjdk-8-jdk 时遇到了同样的问题。
I ended up uninstalling both, rm -rfing /etc/ssl/certs/javaand /etc/java-*, reinstalling openjdk-8-jdkand running sudo update-ca-certificates -f, which fixed it for me.
我最终卸载了rm -rfing/etc/ssl/certs/java和/etc/java-*,重新安装openjdk-8-jdk并运行sudo update-ca-certificates -f,这为我修复了它。
回答by suriyanto
It looks like you are experiencing version mismatch issue.
您似乎遇到了版本不匹配问题。
If you have modified your project/build.propertiesto include sbt.version=0.13.0, it could mean that you are using wrong launcher.
如果您已修改project/build.properties为 include sbt.version=0.13.0,则可能意味着您使用了错误的启动器。
Try running
尝试跑步
sbt sbt-version
and check if the version matches your sbt version in project/build.properties.
并检查版本是否与您的 sbt 版本匹配project/build.properties。

