首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >这个项目使用Play 2.1.2!--它看起来像是一个错误,但它可以编译

这个项目使用Play 2.1.2!--它看起来像是一个错误,但它可以编译
EN

Stack Overflow用户
提问于 2013-10-10 17:15:04
回答 1查看 396关注 0票数 1

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

代码语言:javascript
复制
logLevel := Level.Warn

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

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

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

代码语言:javascript
复制
[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] $

我该怎么处理他说的

代码语言:javascript
复制
This project uses Play 2.1.2!
    Update the Play sbt-plugin version to 2.1.0 (usually in project/plugins.sbt) 

我已经做了gen-ideacompile,但是什么都没有改变。

EN

回答 1

Stack Overflow用户

发布于 2013-10-10 20:58:40

这条消息给了你一个明确的答案,但如果你以前没有遇到过,可能很难理解。

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

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19291677

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档