title: Problems while compiling Spark with maven
body: <p>I'm trying to compile Spark 1.2.0 using maven 3.2.2, scala 2.10.4, java 1.8.0_05 and what I'm getting is:</p>
  
  <pre><code>[INFO] Reactor Summary:
  [INFO] 
  [INFO] Spark Project Parent POM ........................... SUCCESS [  3.513 s]
  [INFO] Spark Project Networking ........................... SUCCESS [  8.909 s]
  [INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [  6.625 s]
  [INFO] Spark Project Core ................................. FAILURE [01:06 min]
  [INFO] Spark Project Bagel ................................ SKIPPED
  [INFO] Spark Project GraphX ............................... SKIPPED
  [INFO] Spark Project Streaming ............................ SKIPPED
  [INFO] Spark Project Catalyst ............................. SKIPPED
  [INFO] Spark Project SQL .................................. SKIPPED
  [INFO] Spark Project ML Library ........................... SKIPPED
  [INFO] Spark Project Tools ................................ SKIPPED
  [INFO] Spark Project Hive ................................. SKIPPED
  [INFO] Spark Project REPL ................................. SKIPPED
  [INFO] Spark Project Assembly ............................. SKIPPED
  [INFO] Spark Project External Twitter ..................... SKIPPED
  [INFO] Spark Project External Flume Sink .................. SKIPPED
  [INFO] Spark Project External Flume ....................... SKIPPED
  [INFO] Spark Project External MQTT ........................ SKIPPED
  [INFO] Spark Project External ZeroMQ ...................... SKIPPED
  [INFO] Spark Project External Kafka ....................... SKIPPED
  [INFO] Spark Project Examples ............................. SKIPPED
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 01:26 min
  [INFO] Finished at: 2015-01-17T22:10:43+01:00
  [INFO] Final Memory: 41M/554M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on project spark-core_2.10: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile failed. CompileFailed -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on project spark-core_2.10: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile failed.
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  Caused by: org.apache.maven.plugin.PluginExecutionException: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile failed.
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      ... 19 more
  Caused by: Compilation failed
      at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:105)
      at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:48)
      at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
      at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:99)
      at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99)
      at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99)
      at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:166)
      at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:98)
      at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:143)
      at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:87)
      at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:39)
      at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:37)
      at sbt.inc.IncrementalCommon.cycle(Incremental.scala:99)
      at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38)
      at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:37)
      at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:65)
      at sbt.inc.Incremental$.compile(Incremental.scala:37)
      at sbt.inc.IncrementalCompile$.apply(Compile.scala:27)
      at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:157)
      at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:71)
      at com.typesafe.zinc.Compiler.compile(Compiler.scala:184)
      at com.typesafe.zinc.Compiler.compile(Compiler.scala:164)
      at sbt_inc.SbtIncrementalCompiler.compile(SbtIncrementalCompiler.java:92)
      at scala_maven.ScalaCompilerSupport.incrementalCompile(ScalaCompilerSupport.java:303)
      at scala_maven.ScalaCompilerSupport.compile(ScalaCompilerSupport.java:119)
      at scala_maven.ScalaCompilerSupport.doExecute(ScalaCompilerSupport.java:99)
      at scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:482)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      ... 20 more
  </code></pre>
  
  <p>Could you please guide me where might be the problem? I tried to find solution elsewhere. There was a problem reported in <a href="https://issues.apache.org/jira/browse/SPARK-3794">SPARK-3794</a> but I think that I have patched version (although version description in jira ticket is weired).</p>
  
  <p>I'm running packaging with following mvn command:</p>
  
  <pre><code>mvn -Dhadoop.version=2.4.1 -DskipTests clean package -X
  </code></pre>