title: After Installing Java JDK 7 For Mac OS X - mvn -version still shows java version 1.6.0_31
body: <p>Oracle released Java JDK 7 on April 26 for Mac OS X.  I followed the install instructions and when I do java -version in a terminal window I get:</p>
  
  <pre><code>java version "1.7.0_04"
  Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
  Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
  </code></pre>
  
  <p>However when I do <code>mvn -version</code> in the terminal window I get:</p>
  
  <pre><code>Apache Maven 3.0.2 (r1056850; 2011-01-08 18:58:10-0600)
  Java version: 1.6.0_31, vendor: Apple Inc.
  Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  Default locale: en_US, platform encoding: MacRoman
  OS name: "mac os x", version: "10.7.3", arch: "x86_64", family: "mac"
  </code></pre>
  
  <p>How can I get Maven to use the Java JDK 1.7.0_04?</p>
  
  <p>Thanks for the help.</p>