我正在尝试将Scalala导入Eclipse。我尝试通过添加以下几行代码来使用sbt-eclipse插件
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0-M2") 在我的plugins.sbt中,我从从github克隆的Scalala目录的根目录运行./sbt update,我得到了以下错误
==================================================
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbteclipse:sbteclipse-plugin:2.0.0-M2 (sbtVersion=0.11.0, scalaVersion=2.9.1)
[warn]
[error] {file:/home/tutysra/Scalala/project/plugins/}default-ffe360/*:update: sbt.ResolveException: unresolved dependency: com.typesafe.sbteclipse#sbteclipse-plugin;2.0.0-M2: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.==================================================
有没有人成功地用Eclipse构建了Scalala的源代码,并且可以分享他们遵循的步骤?
如果IntelliJ是许多开发人员使用的首选方法,我也可以尝试一下。如果在IntelliJ上运行有一些必要的调整,请也提供它们。
发布于 2012-01-02 01:28:50
sbteclipse需要sbt 0.11.2。我已经创建了一个pull request,并进行了必要的更改以将Scalala升级到SBT0.11.2。同时,您可以在本地进行相同的更改。
您仍然需要将sbteclipse添加到project/plugins.sbt
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0-M2") 编辑:更改已合并,Scalala现在使用sbt 0.11.2。获取最新的Scalala,添加上面的配置行,您就可以开始工作了。
https://stackoverflow.com/questions/8686662
复制相似问题