我是 Play 框架的新手。我刚刚阅读了有关如何创建和运行游戏项目的信息。我收到了一个项目,但面临错误:无法检索 sbt 0.11.3
:
Getting org.scala-sbt sbt 0.11.3 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.11.3
==== local: tried
/home/ritesh/Play/play-2.1.0/repository/local/org.scala-sbt/sbt/0.11.3/ivys/ivy.xml
==== Maven2 Local: tried
file:///home/ritesh/.m2/repository/org/scala-sbt/sbt/0.11.3/sbt-0.11.3.pom
==== typesafe-ivy-releases: tried
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.11.3/ivys/ivy.xml
==== Maven Central: tried
http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.11.3/sbt-0.11.3.pom
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.11.3: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.11.3: not found
Error during sbt execution: Error retrieving required libraries
(see /home/ritesh/Play/play-2.1.0/framework/sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.11.3
我只安装了 Play Framework 2.1.0
发行版,没有安装其他任何东西。
如何解决错误并成功执行 play
命令?
最佳答案
我认为您现有的项目依赖于 sbt 0.11.3,并且您正在使用使用 sbt 0.12.2 的 Play 2.1.0 运行它。
检查位于项目文件夹下的文件 build.properties。如果显示 0.11.3,您的项目可能使用另一个 Play 版本,需要升级到 2.1.0。
sbt-plugin 应该在项目文件夹下分配 Play 2.1.0 - se plugins.sbt。
升级您的项目:http://www.playframework.com/documentation/2.1.0/Migration
或者 - 切换到较旧的 Play 版本 - 适合您的项目。 =>http://www.playframework.com/download .
关于scala - 在 Play 2.1.0 中运行现有项目时出现错误 : Could not retrieve sbt 0. 11.3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13903739/