title: Built spark 1.2 using maven had error with package com.google.common
body: <p><strong>CentOS</strong><br> 6.2<br>
  <strong>Hadoop</strong><br> 2.6.0<br><strong>scala</strong><br> 2.10.5<br><strong>java version</strong><br> "1.7.0_75"
  OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-x86_64 u75-b13)<br>
  OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode) <br><strong>mvn version</strong><br> Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T21:10:27+01:00)
  Maven home: /opt/maven<br>
  Java version: 1.7.0_75, vendor: Oracle Corporation<br>
  Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre<br>
  Default locale: en_US, platform encoding: UTF-8<br>
  OS name: "linux", version: "2.6.32-220.el6.x86_64", arch: "amd64", family: "unix"<br>
  <strong>Environment variables</strong><br></p>
  
  <pre><code>export SCALA_HOME=/opt/scala
  export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64
  export JRE_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre
  export HADOOP_HOME=/home/tom/hadoop
  export SPARK_HOME=/home/tom/spark
  export HADOOP_INSTALL=$HADOOP_HOME
  export HADOOP_MAPRED_HOME=$HADOOP_HOME
  export HADOOP_COMMON_HOME=$HADOOP_HOME
  export HADOOP_HDFS_HOME=$HADOOP_HOME
  export YARN_HOME=$HADOOP_HOME
  export HADOOP_YARN_HOME=$HADOOP_HOME
  export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib
  export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$HADOOP_HOME/sbin:$HADOOP_HOME/bin:$SPARK_HOME/bin:$MAVEN_HOME/bin:$SCALA_HOME/bin
  export MAVEN_HOME=/opt/maven
  
  export SPARK_EXAMPLES_JAR=$SPARK_HOME/spark-0.7.2/examples/target/scala-2.9.3/spark-examples_2.9.3-0.7.2.jar
  export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
  export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
  export HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=$HADOOP_HOME/lib/"
  </code></pre>
  
  <p><strong>build command</strong><br>
  mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 -Phive -Phive-0.12.0 -Phive-thriftserver -DskipTests clean package<br>
  <strong>Error Message</strong><br></p>
  
  <pre><code>[ERROR] /home/tom/spark/external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeBatchFetcher.scala:22: object Throwables is not a member of package com.google.common.base
  [ERROR] import com.google.common.base.Throwables
  [ERROR]        ^
  [ERROR] /home/tom/spark/external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeBatchFetcher.scala:59: not found: value Throwables
  [ERROR]           Throwables.getRootCause(e) match {
  [ERROR]           ^
  [ERROR] /home/tom/spark/external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumePollingInputDStream.scala:26: object util is not a member of package com.google.common
  [ERROR] import com.google.common.util.concurrent.ThreadFactoryBuilder
  [ERROR]                          ^
  [ERROR] /home/tom/spark/external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumePollingInputDStream.scala:69: not found: type ThreadFactoryBuilder
  [ERROR]     Executors.newCachedThreadPool(new ThreadFactoryBuilder().setDaemon(true).
  [ERROR]                                       ^
  [ERROR] /home/tom/spark/external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumePollingInputDStream.scala:76: not found: type ThreadFactoryBuilder
  [ERROR]     new ThreadFactoryBuilder().setDaemon(true).setNameFormat("Flume Receiver Thread - %d").build())
  [ERROR]         ^
  [ERROR] 5 errors found
  
  
  [INFO] ------------------------------------------------------------------------
  [INFO] Reactor Summary:
  [INFO] 
  [INFO] Spark Project Parent POM ........................... SUCCESS [ 10.121 s]
  [INFO] Spark Project Networking ........................... SUCCESS [ 14.957 s]
  [INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 10.858 s]
  [INFO] Spark Project Core ................................. SUCCESS [07:33 min]
  [INFO] Spark Project Bagel ................................ SUCCESS [ 52.312 s]
  [INFO] Spark Project GraphX ............................... SUCCESS [02:19 min]
  [INFO] Spark Project Streaming ............................ SUCCESS [03:28 min]
  [INFO] Spark Project Catalyst ............................. SUCCESS [03:18 min]
  [INFO] Spark Project SQL .................................. SUCCESS [03:48 min]
  [INFO] Spark Project ML Library ........................... SUCCESS [03:40 min]
  [INFO] Spark Project Tools ................................ SUCCESS [ 29.380 s]
  [INFO] Spark Project Hive ................................. SUCCESS [02:53 min]
  [INFO] Spark Project REPL ................................. SUCCESS [01:32 min]
  [INFO] Spark Project YARN Parent POM ...................... SUCCESS [  5.124 s]
  [INFO] Spark Project YARN Stable API ...................... SUCCESS [01:34 min]
  [INFO] Spark Project Hive Thrift Server ................... SUCCESS [ 56.404 s]
  [INFO] Spark Project Assembly ............................. SUCCESS [01:11 min]
  [INFO] Spark Project External Twitter ..................... SUCCESS [ 36.661 s]
  [INFO] Spark Project External Flume Sink .................. SUCCESS [ 50.006 s]
  [INFO] Spark Project External Flume ....................... FAILURE [ 14.287 s]
  [INFO] Spark Project External MQTT ........................ SKIPPED
  [INFO] Spark Project External ZeroMQ ...................... SKIPPED
  [INFO] Spark Project External Kafka ....................... SKIPPED
  [INFO] Spark Project Examples ............................. SKIPPED
  [INFO] Spark Project YARN Shuffle Service ................. SKIPPED
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 36:02 min
  [INFO] Finished at: 2015-04-04T03:58:19+02:00
  [INFO] Final Memory: 60M/330M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on project spark-streaming-flume_2.10: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.0: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.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  </code></pre>
  
  <p><br><br><br>
  I doubt it is some dependencies problems but I cannot figure out. Can someone help me?</p>