【问题标题】:Play Framework migration from 2.3 to 2.4Play 框架从 2.3 迁移到 2.4
【发布时间】:2016-12-21 15:34:34
【问题描述】:

在 plugins.sbt 中更改

发件人:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.6")

收件人:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6")

build.properties 改变

发件人:sbt.version=0.13.5 收件人:sbt.version=0.13.8

并且有错误:

    [error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Note that conflicts were resolved for some dependencies:
[error]     org.apache.commons:commons-compress
[error]     org.tukaani:xz
[error]     org.codehaus.plexus:plexus-utils
[error]     com.google.guava:guava
[error]     org.codehaus.plexus:plexus-classworlds
[error]     com.typesafe.akka:akka-actor_2.10
[error]     com.typesafe:config
[error]     org.slf4j:slf4j-api
[error]     org.apache.commons:commons-lang3
[error]     org.fusesource.leveldbjni:leveldbjni
[error]     org.webjars:webjars-locator
[error]     com.typesafe.sbt:sbt-web
[error]     com.typesafe.sbt:sbt-js-engine
[error] Use 'last' for the full log.

有人知道如何解决这个问题吗?

【问题讨论】:

  • 你必须检查所有相关的依赖关系,强烈建议你关注migration guide
  • @Vitalli for play 2.4.6 将 build.properties 更改为 sbt.version=0.13.9
  • @SupunWijerathne 没有帮助。但我已经解决了问题。 tnx
  • @VitaliiShkurenko 不错。 !!!!!! (Y)

标签: scala playframework sbt playframework-2.3


【解决方案1】:

问题在于 play2-war-plugin 插件。 只需将版本从:1.3-beta1 更改为1.4-beta1 即可成功编译项目

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-11-05
    • 2013-10-21
    • 1970-01-01
    • 1970-01-01
    • 2015-06-19
    • 2021-06-12
    • 2015-11-23
    相关资源
    最近更新 更多