在迁移我的项目Play 2.4和sbt eclipse插件4.0.0时,我的构建文件中出现以下异常:
java.lang.IllegalStateException: Undefined setting 'eclipseSkipProject in Scope(
Select(ProjectRef("Some git url with #commit",root)),This,This,This)'!
这跟随this issue,因为我只想通过在每个子项目中添加sbteclipse 4.0.0插件来修改原始的缓存子项目,从而获得更好的解决方法。
我的build.sbt
文件如下:
lazy val server = (project in file("server")) .settings(scalaVersion := "2.11.7") .dependsOn(leonProject) lazy val leonProject = RootProject(uri("https://github.com/epfl-lara/leon.git#5bf8a57cc03ae5ccbd890e3f4f0121a6f9dd1bb2")) EclipseKeys.skipProject in leonProject := true EclipseKeys.preTasks := Seq(compile in Compile)
和project/plugins.sbt
为sbt版本0.13.9
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
Eclipse.skipProject in leonProject := true
怎么没有效果?