title: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2
body: <p>While compiling the Maven project the following error occured:</p>
  
  <pre><code>[INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ spark-streaming-flume-sink_2.10 --- 
  [WARNING] Zinc server is not available at port 3030 - reverting to normal incremental compile 
  [INFO] Using incremental compilation 
  [INFO] Compiling 6 Scala sources and 3 Java sources to /home/gorlec/Desktop/test/external/flume-sink/target/scala-2.10/classes... 
  [ERROR] /home/gorlec/Desktop/test/external/flume-sink/src/main/scala/org/apache/spark/streaming/flume/sink/SparkAvroCallbackHandler.scala:47: identifier expected but 'with' found. 
  [ERROR] with Logging { 
  [ERROR] ^ 
  [ERROR] one error found 
  [INFO] ------------------------------------------------------------------------ 
  [INFO] BUILD FAILURE 
  [INFO] ------------------------------------------------------------------------ 
  [INFO] Total time: 7.992s 
  [INFO] Finished at: Fri Apr 15 17:44:33 CEST 2016 
  [INFO] Final Memory: 25M/350M 
  [INFO] ------------------------------------------------------------------------ 
  [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project spark-streaming-flume-sink_2.10: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed. CompileFailed -&gt; 
  [Help 1] 
  [ERROR]
  </code></pre>
  
  <p>I removed the property <code>&lt;useZincServer&gt;true&lt;/useZincServer&gt;</code> from pom.xml, and still the Logging error persists. </p>
  
  <pre><code>[INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ spark-streaming-flume-sink_2.10 --- 
  [INFO] Using incremental compilation 
  [INFO] Compiling 6 Scala sources and 3 Java sources to /home/gorlec/Desktop/test/external/flume-sink/target/scala-2.10/classes... 
  [ERROR] /home/gorlec/Desktop/test/external/flume-sink/src/main/scala/org/apache/spark/streaming/flume/sink/SparkAvroCallbackHandler.scala:47: identifier expected but 'with' found. 
  [ERROR] with Logging { 
  [ERROR] ^ 
  [ERROR] one error found 
  [INFO] ------------------------------------------------------------------------ 
  [INFO] BUILD FAILURE 
  [INFO] ------------------------------------------------------------------------ 
  [INFO] Total time: 5.814s 
  [INFO] Finished at: Fri Apr 15 17:41:00 CEST 2016 
  [INFO] Final Memory: 25M/335M 
  [INFO] ------------------------------------------------------------------------ 
  [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project spark-streaming-flume-sink_2.10: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed. CompileFailed -&gt; 
  [Help 1] 
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  </code></pre>
  
  <p>I checked that <code>PATH</code> and <code>JAVA_HOME</code> are defined in <code>~/.bashrc</code> as follows:</p>
  
  <pre><code>export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-amd64/bin
  export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  </code></pre>
  
  <p>The only issue that I noticed is that <code>echo $JAVA_HOME</code> gives an empty output, though I did <code>source ~/.bashrc</code>.</p>
  
  <p>Any help is highly appreciated.</p>