title: How to attach sources to SBT managed dependencies in Scala IDE?
body: <p>I'm using Scala IDE 2.0.1 and SBT 0.11.2 to start with Akka 2.0.1. My build.sbt looks like this:</p>
  
  <pre><code>name := "akka"
  
  version := "0.1"
  
  scalaVersion := "2.9.2"
  
  resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
  
  libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.1"
  </code></pre>
  
  <p>As you can see, there's nothing spectacular.</p>
  
  <p>Now how can I tell Eclipse to use the artifact with the sources classifier for the akka-actor library?</p>
  
  <p>In SBT, I can use update-classifiers to download sources and Javadocs to the Ivy repository, but even if I do this before running the eclipse command from the sbteclipse plugin then Eclipse still does not know the sources. Of course, I could do this manually, but this doesn't scale well for more libraries.</p>
  
  <p>I have also tried to use the IvyDE plugin with the deliver-local command. While this integrates the dependency management, it doesn't seem to help with the sources.</p>
  
  <p>Any clues?</p>
  
  <p><strong>Edit:</strong> This is the ivy.xml generated from deliver-local:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra"&gt;
  &lt;info organisation="default" module="akka_2.9.2" revision="0.1" status="release" publication="20120506225613"&gt;
      &lt;description&gt;
      akka
      &lt;/description&gt;
  &lt;/info&gt;
  &lt;configurations&gt;
      &lt;conf name="compile" visibility="public" description=""/&gt;
      &lt;conf name="runtime" visibility="public" description="" extends="compile"/&gt;
      &lt;conf name="test" visibility="public" description="" extends="runtime"/&gt;
      &lt;conf name="provided" visibility="public" description=""/&gt;
      &lt;conf name="optional" visibility="public" description=""/&gt;
      &lt;conf name="sources" visibility="public" description=""/&gt;
      &lt;conf name="docs" visibility="public" description=""/&gt;
      &lt;conf name="pom" visibility="public" description=""/&gt;
  &lt;/configurations&gt;
  &lt;publications&gt;
      &lt;artifact name="akka_2.9.2" type="pom" ext="pom" conf="pom"/&gt;
      &lt;artifact name="akka_2.9.2" type="jar" ext="jar" conf="compile"/&gt;
      &lt;artifact name="akka_2.9.2" type="src" ext="jar" conf="sources" e:classifier="sources"/&gt;
      &lt;artifact name="akka_2.9.2" type="doc" ext="jar" conf="docs" e:classifier="javadoc"/&gt;
  &lt;/publications&gt;
  &lt;dependencies&gt;
      &lt;dependency org="org.scala-lang" name="scala-library" rev="2.9.2" conf="compile-&gt;default(compile)"/&gt;
      &lt;dependency org="com.typesafe.akka" name="akka-actor" rev="2.0.1" conf="compile-&gt;default(compile)"/&gt;
      &lt;exclude org="org.scala-lang" module="scala-library" artifact="*" type="jar" ext="*" matcher="exact"/&gt;
      &lt;exclude org="org.scala-lang" module="scala-compiler" artifact="*" type="jar" ext="*" matcher="exact"/&gt;
      &lt;override org="org.scala-lang" module="scala-library" matcher="exact" rev="2.9.2"/&gt;
      &lt;override org="org.scala-lang" module="scala-compiler" matcher="exact" rev="2.9.2"/&gt;
  &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>I'm new to Ivy, so this doesn't tell me much. I just figure that it mentions sources and javadocs, but somehow the IvyDE doesn't pick it up.</p>