title: How to modify pom.xml so Maven 3.0.4 Does not think I am running SDK 1.3
body: <p>I know this question gets asked every so often, but the solutions out there seem to be for older versions of Maven. </p>
  
  <p>The version I am running:</p>
  
  <pre><code>hduser@lightning252:~/spark-0.7.0-2/examples/ex2$ mvn -version
  Apache Maven 3.0.4
  Maven home: /usr/share/maven
  Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
  Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
  Default locale: en_GB, platform encoding: UTF-8
  OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"
  </code></pre>
  
  <p>The pom.xml I am using: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project&gt;
    &lt;groupId&gt;edu.berkeley&lt;/groupId&gt;
    &lt;artifactId&gt;simple-project&lt;/artifactId&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;name&gt;Simple Project&lt;/name&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.3.2&lt;/version&gt;
         &lt;configuration&gt;
          &lt;source&gt;1.5&lt;/source&gt;
          &lt;target&gt;1.5&lt;/target&gt;
         &lt;/configuration&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;Spray.cc repository&lt;/id&gt;
        &lt;url&gt;http://repo.spray.cc&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;Akka repository&lt;/id&gt;
        &lt;url&gt;http://repo.akka.io/releases&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt; &lt;!-- Spark dependency --&gt;
        &lt;groupId&gt;org.spark-project&lt;/groupId&gt;
        &lt;artifactId&gt;spark-core_2.9.2&lt;/artifactId&gt;
        &lt;version&gt;0.7.0&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I have actually never used Maven before, I am trying to follow the instructions given by the Spark project to compile a Spark task. The pom.xml was directly lifted from: </p>
  
  <pre><code>http://spark-project.org/docs/latest/quick-start.html
  </code></pre>
  
  <p>I know the problem is with <code>&lt;plugins&gt;</code> could someone please let me know how to fix it?</p>