title: Why does IntelliJ IDEA debugger jump to wrong Scala version library?
body: <p>I am using IntelliJ IDEA 13.1.2 with the Scala plugin version 0.36.431 on Windows 7 with sbt 0.13.1.</p>
  
  <p>The following project definition <code>build.sbt</code> has no references to any Scala version other than <strong>2.9.3</strong>.</p>
  
  <pre><code>import sbt._
  import Keys._
  import AssemblyKeys._
  import NativePackagerKeys._
  
  name := "simplews"
  
  version      := "0.1.0-SNAPSHOT"
  
  val sparkVersion = "0.8.1-incubating"
  
  scalaVersion := "2.9.3"
  
  val akkaVersion = "2.0.5"
  
  libraryDependencies ++= Seq(
    "org.apache.spark" % "spark-core_2.9.3" % sparkVersion  % "compile-&gt;default"  withSources(),
    "org.apache.spark" % "spark-examples_2.9.3" % sparkVersion  % "compile-&gt;default"  withSources(),
    "org.apache.spark" % "spark-tools_2.9.3" % sparkVersion  % "compile-&gt;default"  withSources(),
    "org.scalatest" % "scalatest_2.9.3" % "1.9.2" % "test"  withSources(),
    "org.apache.spark" % "spark-repl_2.9.3" % sparkVersion  % "compile-&gt;default"  withSources(),
    "org.apache.kafka" % "kafka" % "0.7.2-spark",
    "com.thenewmotion.akka" % "akka-rabbitmq_2.9.2" % "0.0.2" % "compile-&gt;default"  withSources(),
    "com.typesafe.akka" % "akka-actor" % akkaVersion % "compile-&gt;default" withSources(),
    "com.typesafe.akka" % "akka-testkit" % akkaVersion % "compile-&gt;default" withSources(),
    "com.rabbitmq" % "amqp-client" % "3.0.1" % "compile-&gt;default"  withSources(),
    "org.specs2" % "specs2_2.9.3" % "1.12.4.1" % "compile-&gt;default"  withSources(),
    "com.nebhale.jsonpath" % "jsonpath" % "1.2" % "compile-&gt;default"  withSources(),
    "org.mockito" % "mockito-all" % "1.8.5",
    "junit" % "junit" % "4.11"
  )
  
  packagerSettings
  
  packageArchetype.java_application
  
  resolvers  ++= Seq(
    "Apache repo" at "https://repository.apache.org/content/repositories/releases",
    "Cloudera repo" at "https://repository.cloudera.com/artifactory/repo/org/apache/kafka/kafka/0.7.2-spark/",
    "akka rabbitmq" at "http://nexus.thenewmotion.com/content/repositories/releases-public",
    "Local Repo" at Path.userHome.asFile.toURI.toURL + "/.m2/repository",
    Resolver.mavenLocal
  )
  </code></pre>
  
  <p>However as seen in the screenshot the debugger has jumped to scala <strong>2.10.2</strong>. Note: the debugger is correctly going to <strong>2.9.3</strong> for some other debugging.</p>
  
  <p>Here is <strong>project/plugins.sbt</strong>:</p>
  
  <pre><code>resolvers += "sbt-plugins" at "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"
  
  addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.0-RC2")
  
  addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
  
  addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
  </code></pre>
  
  <p><strong>EDIT</strong>   In order to reproduce it is necessary to do a mvn local install on one or two libraries that are not available in any public repo.  </p>
  
  <pre><code>mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file  -Dfile=c:\shared\kafka-0.7.2-spark.jar  -DgroupId=org.apache.kafka -DartifactId=kafka -Dversion=0.7.2-spark  -Dpackaging=jar
  </code></pre>
  
  <p>I had in any case not considered someone (om-nom-nom !) would attempt an exact reproduction - so had also omitted otherwise extraneous items like mergeStrategy and assemblyKeys.   </p>
  
  <p>A fully independent reproducible setup may be a bit in coming  - I have been under rather quite heavy demands here.</p>
  
  <p><img src="https://i.stack.imgur.com/MAXDQ.jpg" alt="enter image description here"></p>