2

I am trying to import Scalala into Eclipse. I had tried using the sbt-eclipse plugin by adding the lines

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

to my plugins.sbt and I ran ./sbt update from the root of the Scalala dir which is cloned from github, I am getting the below error

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

[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.

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

Had anyone successfully built Scalala's source with Eclipse and can share the steps they followed?

I can also give IntelliJ a try if that is the preferred method and used by many devs. If there are some tweaking necessary for running on IntelliJ please provide them as well.

4

1 に答える 1

2

sbteclipseにはsbt0.11.2が必要です。Scalalaをsbt0.11.2にアップグレードするために必要な変更を加えたプルリクエストを作成しました。その間、ローカルで同じ変更を加えることができます。

あなたはまだsbteclipseをに追加する必要がありますproject/plugins.sbt

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

編集:変更がマージされ、Scalalaはsbt0.11.2を使用するようになりました。最新のScalalaを入手し、上記の構成行を追加すれば、準備は完了です。

于 2012-01-01T17:28:49.750 に答える