title: how to force Maven 3.1 to use right version of Java on Mac OS 8.10?
body: <p>This is the output from java -version:</p>
  
  <p>java version "1.7.0_25"
  Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)</p>
  
  <p>This is the output from mvn -version:</p>
  
  <p>Java version: 1.6.0_51, 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.8.4", arch: "x86_64", family: "mac"</p>
  
  <p>How do I force Maven to use 1.7?</p>