title: How do I resolve "error: bad symbolic reference" for dependencies using maven-scala plugin?
body: <p>I'm building a small database query utility using Scala and Slick, with Maven as my build and packaging tool.</p>
  
  <p>My code compiles without any syntax errors, but the build fails with this:</p>
  
  <pre><code>[INFO] --- maven-scala-plugin:2.15.0:compile (default) @ origdups ---
  [INFO] Checking for multiple versions of scala
  [INFO] includes = [**/*.scala,**/*.java,]
  [INFO] excludes = []
  [INFO] /home/lreeder/dev/scala/origdups/src/main/scala:-1: info: compiling
  [INFO] Compiling 4 source files to /home/lreeder/dev/scala/origdups/target/classes at 1375638972068
  [INFO] No known dependencies. Compiling everything
  [ERROR] error: bad symbolic reference. A signature in Mapper.class refers to term runtime
  [INFO] in package scala.reflect which is not available.
  [INFO] It may be completely missing from the current classpath, or the version on
  [INFO] the classpath might be incompatible with the version used when compiling Mapper.class.
  (several more similar errors)
  </code></pre>
  
  <p>Note that the Mapper class is not my code.  I think it's part of Slick?  I'm using Scala 2.10.1 for the maven-scala plugin: </p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.scala-lang&lt;/groupId&gt;
    &lt;artifactId&gt;scala-library&lt;/artifactId&gt;
    &lt;version&gt;2.10.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and Slick 2.10 (currently build with Scala 2.10.1):</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;com.typesafe.slick&lt;/groupId&gt;
     &lt;artifactId&gt;slick_2.10&lt;/artifactId&gt;
     &lt;version&gt;1.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I've compiled with maven debug turned on, and this is the Java call that generates the errors above.</p>
  
  <blockquote>
    <p>/usr/local/jdk1.7.0_21/jre/bin/java -classpath
    /home/lreeder/.m2/repository/org/scala-lang/scala-library/2.10.1/scala-library-2.10.1.jar:/home/lreeder/.m2/repository/org/scala-lang/scala-compiler/2.10.1/scala-compiler-2.10.1.jar:/home/lreeder/.m2/repository/org/scala-lang/scala-reflect/2.10.1/scala-reflect-2.10.1.jar:/home/lreeder/.m2/repository/org/scala-tools/maven-scala-plugin/2.15.0/maven-scala-plugin-2.15.0.jar
    -Xbootclasspath/a:/home/lreeder/.m2/repository/org/scala-lang/scala-library/2.10.1/scala-library-2.10.1.jar
    org_scala_tools_maven_executions.MainWithArgsInFile
    scala.tools.nsc.Main /tmp/scala-maven-6314934214401019063.args</p>
  </blockquote>
  
  <p>What am I missing here?  What needs to be set in the maven-scala plugin configuration to get rid of these errors.</p>