未解决的依赖项:org.scala-sbt#sbt;0.13:运行 sbt 0.13 时未找到? [英] Unresolved dependency: org.scala-sbt#sbt;0.13: not found when running sbt 0.13?
本文介绍了未解决的依赖项:org.scala-sbt#sbt;0.13:运行 sbt 0.13 时未找到?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个由几个项目组成的 Scala 项目.我决定开始使用 sbt 0.13
.这是~/sbt/repositories
:
[仓库]当地的sbt-releases-repo: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[类型]s/[工件](-[分类器]).[ext]sbt-plugins-repo: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/, [组织]/[模块]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[修订版]/[类型]s/[工件](-[分类器]).[ext]maven-central:http://repo1.maven.org/maven2/
但我仍然收到错误消息:
正在获取 org.scala-sbt sbt 0.13 ...:: 问题总结:::::: 警告找不到模块:org.scala-sbt#sbt;0.13==== 本地:尝试过/home/alex/.ivy2/local/org.scala-sbt/sbt/0.13/ivys/ivy.xml==== sbt-releases-repo:尝试过http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13/ivys/ivy.xml==== sbt-plugins-repo:尝试过http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.13/ivys/ivy.xml==== maven-central:尝试过http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13/sbt-0.13.pom:::::::::::::::::::::::::::::::::::::::::::::::: 未解决的依赖项 :::::::::::::::::::::::::::::::::::::::::::::::::: org.scala-sbt#sbt;0.13: 未找到:::::::::::::::::::::::::::::::::::::::::::::::: 使用详细或调试消息级别以获取更多详细信息未解决的依赖项:org.scala-sbt#sbt;0.13:未找到sbt 执行期间出错:检索所需库时出错(有关完整日志,请参阅/home/alex/.sbt/boot/update.log)错误:无法检索 sbt 0.13
如果我删除此文件,则错误仍然存在.
解决方案
尝试使用 0.13.1
.
将以下内容放入project/build.properties
:
sbt.version=0.13.1
您可能还需要 0.13
sbt 启动器.请参阅 sbt 入门 - 设置>
I have a Scala project consisting of a few ones. I decided to start using sbt 0.13
. Here is ~/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.
解决方案
Try using 0.13.1
.
Put the following in project/build.properties
:
sbt.version=0.13.1
You will probably need the 0.13
sbt launcher as well. See sbt Getting-Started - Setup
这篇关于未解决的依赖项:org.scala-sbt#sbt;0.13:运行 sbt 0.13 时未找到?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文