我有一个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/但我还是犯了个错误:
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如果删除此文件,则错误仍然存在。
发布于 2013-11-06 06:43:13
发布于 2013-11-07 01:17:36
看起来您正在经历版本不匹配的问题。
如果您修改了project/build.properties以包括sbt.version=0.13.0,这可能意味着您使用了错误的启动程序。
试着跑
sbt sbt-version并检查该版本是否与project/build.properties中的sbt版本相匹配。
发布于 2017-12-20 15:59:25
当我第一次在Ubuntu上安装openjdk-9-jdk和openjdk-8-jdk时,我也遇到了同样的问题。
最后,我卸载了rm -rfing /etc/ssl/certs/java和/etc/java-*,重新安装了openjdk-8-jdk并运行了sudo update-ca-certificates -f,这为我修复了它。
https://stackoverflow.com/questions/19805102
复制相似问题