typesafehub/sbteclipse — Issue #89: eclipse with-source=true generates duplicates for provided dependencies
Author: ilya-klyuchnikov
Created: 2012-02-01 12:42:17+00:00
State: open

The example of this behavior is available at [this project](https://github.com/ilya-klyuchnikov/sbteclipse-bug).

The generated `.classpath` containes duplicates:

```

```

It seems that in this case the root cause is that this dependency is marked as `provided`:

```
organization := "com.example"

name := "scalatra-sbt-prototype"

version := "0.1.0-SNAPSHOT"

scalaVersion := "2.9.1"

seq(webSettings :_*)

libraryDependencies ++= Seq(
"org.scalatra" %% "scalatra" % "2.0.3",
"org.scalatra" %% "scalatra-scalate" % "2.0.3",
"org.scalatra" %% "scalatra-specs2" % "2.0.3" % "test",
"ch.qos.logback" % "logback-classic" % "1.0.0" % "runtime",
"org.eclipse.jetty" % "jetty-webapp" % "7.5.4.v20111024" % "container",
"javax.servlet" % "servlet-api" % "2.5" % "provided"
)

resolvers += "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"

```