我从git复制了一个Play框架Scala项目,当我启动命令$ Play时,我收到了这个错误:
Getting org.scala-sbt sbt ${{sbt.version}} ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;${{sbt.version}}
==== local: tried
D:\play-2.1.0\repository\local\org.scala-sbt\sbt\${{sbt.version}}\ivys\ivy.xml
==== Maven2 Local: tried
file://C:\Users\mghesmoune.stage/.m2/repository/org/scala-sbt/sbt/${{sbt.version}}/sbt-${{sbt.version}}.pom
==== typesafe-ivy-releases: tried
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/${{sbt.version}}/ivys/ivy.xml
==== Maven Central: tried
http://repo1.maven.org/maven2/org/scala-sbt/sbt/${{sbt.version}}/sbt-${{sbt.version}}.pom
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;${{sbt.version}}: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;${{sbt.version}}: not found
Error during sbt execution: Error retrieving required libraries
(see D:\play-2.1.0\framework\.\sbt\boot\update.log for complete log)
Error: Could not retrieve sbt ${{sbt.version}}
我正在使用Play-2.1.0,sbt启动器版本0.12.2(和Windows操作系统)
如何解决这个问题?
答案 0 :(得分:7)
如果从包含play
目录且其中包含某些SBT设置的目录运行project
命令,则会发生这种情况。尝试删除project
目录(但不是应用程序中的目录),或者移动到另一个目录以运行命令。
答案 1 :(得分:3)
这里有一个答案:Error: module not found: org.scala-sbt#sbt;${{sbt.version}}
基本上,如果不存在以下内容,则创建project / build.properties文件:
sbt.version=0.12.2