我已經成功使用sbt-eclipse 3.0.0一段時間了。我最近升級到Play 2.3.8,需要升級到sbt-eclipse 4.0.0以避免this problem。我試圖更新項目/ plugins.sbt,但得到這個錯誤,運行activator eclipse
時:嘗試升級到sbt eclipse 4.0.0時發生異常
java.lang.NoSuchMethodError: com.typesafe.sbteclipse.core.EclipsePlugin$.EclipseKeys()Lcom/typesafe/sbteclipse/core/EclipsePlugin$EclipseKeys$;
at play.PlayEclipse$class.eclipseCommandSettings(PlayEclipse.scala:93)
at play.Play$.eclipseCommandSettings(Project.scala:17)
at play.PlayScala$.projectSettings(Project.scala:72)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
.....
我試着只在我的〜/名.bst/0.13 /插件/ plugins.sbt,那麼只有在引用我的4.0.0 project/plugins.sbt,但這似乎沒有什麼區別。事實上,我可以在這兩個引用被刪除的情況下運行3.0.0 activator eclipse。我不知道在這種情況下activator/sbt如何找到3.0.0插件 - 也許我的錯誤是由於加載3.0.0和4.0.0?
環境:
Play 2.3.8
Activator 1.3.4
Scala 2.10.4
〜/名.bst/0.13 /插件/ plugins.sbt是空
項目/ build.properties:
sbt.version=0.13.8
項目/ plugins.sbt:
// Comment to get more information during initialization
logLevel := Level.Info
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.8")
addSbtPlugin("com.typesafe.sbt" % "sbt-uglify" % "1.0.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-uglify" % "1.0.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.6")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
SBT 4.0.0似乎不工作玩2.3。嘗試更新爲播放2.4。請參閱:https://github.com/typesafehub/sbteclipse/issues/221 – mhei
謝謝@mhei - 我搜索了很長時間來查找兼容性信息,但失敗了。 –