2

我正在尝试将 Scalala 导入 Eclipse。我曾尝试通过添加行来使用 sbt-eclipse 插件

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

到我的 plugins.sbt 并且我./sbt update从从 github 克隆的 Scalala 目录的根目录运行,我收到以下错误

====================================================

[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 上运行需要进行一些调整,请同时提供。

4

1 回答 1

2

sbteclipse 需要 sbt 0.11.2。我创建了一个拉取请求,其中包含将 Scalala 升级到 sbt 0.11.2 的必要更改。同时,您可以在本地进行相同的更改。

您仍然需要将 sbteclipse 添加到project/plugins.sbt

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

编辑:更改已合并,Scalala 现在使用 sbt 0.11.2。获取最新的 Scalala,添加上面的配置行,你应该很高兴。

于 2012-01-01T17:28:49.750 回答