title: Spark: A signature in package.class refers to type compileTimeOnly
body: <p>When trying to build MLlib example with Spark 1.2.1 using SBT I get the whole bunch of strange compilation errors. The same code builds fine with Spark 1.1.0. For Spark 1.2.1 I use the following SBT build file:</p>
  
  <pre><code>name := "Test"
  
  version := "1.0"
  
  scalaVersion := "2.10.4"
  
  libraryDependencies += "org.apache.spark" % "spark-mllib_2.11" % "1.2.1" % "provided"
  </code></pre>
  
  <p>As a result I get the following set of strange errors:</p>
  
  <pre><code>[info] Compiling 1 Scala source to /home/test/target/scala-2.10/classes...
  [error] bad symbolic reference. A signature in package.class refers to type compileTimeOnly
  [error] in package scala.annotation which is not available.
  [error] It may be completely missing from the current classpath, or the version on
  [error] the classpath might be incompatible with the version used when compiling package.class.
  [error] /home/test/src/main/scala/Test.scala:16: Reference to method augmentString in object Predef should not have survived past type checking,
  [error] it should have been processed and eliminated during expansion of an enclosing macro.
  [error] val parsedData = data.map(s =&gt; Vectors.dense(s.split(' ').map(_.toDouble))).cache()
  [error] /home/test/src/main/scala/Test.scala:16: Reference to method augmentString in object Predef should not have survived past type checking,
  [error] it should have been processed and eliminated during expansion of an enclosing macro.
  [error] val parsedData = data.map(s =&gt; Vectors.dense(s.split(' ').map(_.toDouble))).cache()
  [error]                                                               ^
  [error] three errors found
  [error] (compile:compile) Compilation failed
  [error] Total time: 21 s, completed 26.02.2015 17:47:29
  </code></pre>
  
  <p>How to fix this? It would be great if somebody could post a general SBT to build Spark 1.2.1 + MLlib code. Thanks!</p>