1

我有一个 Play Framework 应用程序,这是一个文件project/plugins.sbt

logLevel := Level.Warn

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

addSbtPlugin("play" % "sbt-plugin" % "2.1.2")

当我说play我得到以下输出时:

[info] Loading global plugins from /home/me/.sbt/plugins
[info] Updating {file:/home/me/.sbt/plugins/}default-c82e21...
[info] Resolving org.scala-sbt#precompiled-2_10_0;0.12.2 ...
[info] Done updating.
[info] Loading project definition from /home/me/project123/project

This project uses Play 2.1.2!
Update the Play sbt-plugin version to 2.1.0 (usually in project/plugins.sbt)

[info] Set current project to project123 (in build file:/home/me/project123/)
       _            _
 _ __ | | __ _ _  _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__ (_)
|_|            |__/

play! 2.1.2 (using Java 1.7.0_25 and Scala 2.10.0), http://www.playframework.org

> Type "help play" or "license" for more information.
> Type "exit" or use Ctrl+D to leave this console.

[project123] $

我该怎么办他说

This project uses Play 2.1.2!
    Update the Play sbt-plugin version to 2.1.0 (usually in project/plugins.sbt) 

?

我已经这样做了gen-ideacompile但没有任何改变。

4

1 回答 1

2

该消息为您提供了明确的答案,但是如果您以前没有遇到过,可能很难理解。

该消息建议您将 sbt-plugin 版本更改为 2.1.0。plugins.sbt 文件的最后一行应替换为以下行。

addSbtPlugin("play" % "sbt-plugin" % "2.1.0")

于 2013-10-10T12:58:39.933 回答