2016-08-15 80 views
0

在plugins.sbt變化播放框架遷移從2.3至2.4

來自: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. 

是的,有人知道如何解決這個問題嗎?

+0

您必須檢查所有相關依賴項,強烈建議您按照[遷移指南](https://www.playframework.com/documentation/2.4 .X/Migration24)。 – cchantep

+0

@Vitalli for play 2.4.6修改build.properties到sbt.version = 0.13.9 –

+0

@SweetWijerathne沒有幫助。但我已經解決了問題。 tnx –

回答

0

問題出在play2-war-plugin插件。 只需將版本從1.3-beta1更改爲1.4-beta1並且項目已成功編譯