为Scala IDE配置Lift项目

时间:2013-04-12 09:57:00

标签: eclipse scala sbt lift sbteclipse

我正在尝试为Eclipse IDE配置Lift项目。为此,我执行本教程:http://scala-ide.org/docs/tutorials/lift24scalaide20/index.html

我到达为Scala IDE配置Lift项目的步骤,当我运行命令> sbt时,我有这样的错误:

D:\ lift-lift_24_sbt-61d24f7 \ lift_basic \ build.sbt:11:错误:找不到:值EclipseKeys         EclipseKeys.createSrc:= EclipseCreateSrc.Default + EclipseCreateSrc.Resource         ^ D:\ lift-lift_24_sbt-61d24f7 \ lift_basic \ build.sbt:11:错误:重新分配给val         EclipseKeys.createSrc:= EclipseCreateSrc.Default + EclipseCreateSrc.Resource                               ^ [error]在表达式中键入错误 项目加载失败:(r)etry,(q)uit,(l)ast,或(i)gnore?

我不明白我错过了什么?

1 个答案:

答案 0 :(得分:3)

之前我遇到过这个错误,问题是我没有安装sbteclipse插件。尝试将此添加到~/.sbt/plugins/plugins.sbt,或者您的sbt插件配置文件的位置:

//Eclipse Plugin
resolvers += Classpaths.typesafeResolver

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0")