【发布时间】:2013-04-22 05:24:13
【问题描述】:
所以我想开始做一个我5个月前放弃的游戏框架项目,该项目仍然是2.0.4版本,看到2.1.1是我做这个教程更新项目的最新版本:@ 987654321@。 (除了做 addSbtPlugin("play" % "sbt-plugin" % "2.1.1") 来匹配当前版本)
但是一旦我尝试做干净的游戏,我就会收到这个错误:
[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Note that conflicts were resolved for some dependencies:
[error] asm:asm
[error] asm:asm-tree
[error] asm:asm-util
[error] jline:jline
[error] junit:junit
[error] com.jcraft:jsch
[error] commons-logging:commons-logging
[error] commons-codec:commons-codec
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
除了这个link,我在这个话题上找不到太多,但我真的不明白是什么解决了那里的问题,显然提问者也没有。我还尝试在迁移教程中添加所有示例依赖项,但没有任何改变。
这是可以解决的还是我应该恢复到 2.0.4?
EDIT 1-5-12' 添加了配置文件,我认为没有什么异常
构建.scala
import sbt._
import Keys._
import play.Project._
object ApplicationBuild extends Build {
val appName = "Workshop0182Host"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
// Add your project dependencies here,
)
val main = play.Project(appName, appVersion, appDependencies).settings(
// Add your own project settings here
)
}
plugins.sbt
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.1.1")
build.properties
sbt.version=0.12.2
我尝试过 addSbtPlugin("play" % "sbt-plugin" % "2.1.0") 但后来 play clean 只是说 addSbtPlugin 使用了错误的版本。 play clean-all 运行良好,但之后没有任何变化
EDIT 1-5-12' 添加日志
当我尝试运行play clean 或play run 时,这是一个指向错误日志的链接(pastebin),我认为问题与 scala 版本有关,但我不知道从哪里开始在那里。
【问题讨论】:
-
试试
play clean-all看看是否有帮助。 -
如果
play clean失败,只需删除target文件夹即可。它具有相同的效果。 -
你使用任何自定义的 sbt 插件吗?
-
@Marius Soutier 不,我没有
标签: java scala playframework playframework-2.0 sbt