2011-12-31 29 views
2

我想將Scalala導入Eclipse。 我已經通過增加線克隆並用Eclipse構建Scalala/IntelliJ

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

我plugins.sbt 使用SBT-Eclipse插件試過,我跑了./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上運行時需要進行一些調整,請提供它們。

+1

我有sbt版本0.11.2和'〜/ .sbt/plugins/plugins.sbt'下的'addSbtPlugin'。可能是你可以嘗試移動你的主目錄下的插件參考,如果你還沒有運行,升級到0.11.2? – huynhjl 2011-12-31 17:19:14

+0

當我從github克隆它時,我正在使用隨包提供的SBT版本。我將安裝0.11.2並試一試。 – tutysara 2012-01-01 05:24:38

回答

2

sbteclipse需要sbt 0.11.2。我創建了一個pull request,並將Scalala升級到0.11.2進行了必要的更改。同時,您可以在本地進行相同的更改。

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

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

編輯:改變已經合併,並Scalala現在使用SBT 0.11.2。抓住最新的Scalala,添加上面的配置線,你應該很好去。

+0

謝謝詹姆斯,我接受了最新的變化,它的工作就像一個魅力。 – tutysara 2012-01-06 17:19:47