I have a problem where my Scala project will not build in sbt 0.13.1 and Scala 2.10.3 unless I DO NOT try to add the sbteclipse plugin (2.4.0).
I recently switched from Linux Mint 14 Xfce to Fedora 20 Xfce. When I was on Linux Mint 14, I developed a small RESTful service using Scala, Akka, Spray, and Slick, building using sbt. After installing Fedora 20, I installed all the packages necessary to resume work on that REST service. To that end, I ran
yum install -y java
yum install -y scala
yum install -y sbt
This installed OpenJDK 1.7.0_51, Scala 2.10.3, and sbt 0.13.1.
When my plugins.sbt
contains the line
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
running sbt
from the command line generates the following error:
sbt.ResolveException: unresolved dependency: org.scala-lang#scala-library;2.10.3: configuration not found in org.scala-lang#scala-library;2.10.3: 'compile'
This is a problem whether the plugins.sbt
is located in <projectfolder>/project
, or in ~/.sbt/0.13/plugins
.
When I comment-out the
// addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
line from the plugins.sbt, the build functions normally.
I recreated the problem using a simple test project that just creates a single Scala class with a one-line print statement. The problem continues to occur independently of whatever other plugins, repositories, or library dependencies I define in the plugins.sbt and build.sbt files.
The simple test project is located at testproject on Github
The REST service is located at airport-web on Github
Please note that the REST service has commented-out the addSbtPlugin...sbteclipse line in plugins.sbt.