One, my Mac system
The preinstalled JDK is 1.6 and needs to be upgraded to 1.7 due to the need to use the Eclipse MARs 2 version
Second, download Java JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Do not know why directly under very slow, later with the Thunderbolt super fast, the next good after the direct double-click on the line
Third, the new version will be installed in
/library/java/javavirtualmachines/jdk1.7.0_79.jdk/contents/home this path, the actual opening can see that eclipse is using this version of the JDK, but at this point Java_ Home didn't turn out to be the latest, so
In the/usr/kane user directory vim./BASHRC, make the following changes, MVN is already under the good, also set an environment variable here, and finally save the exit source./BASHRC can take effect
JAVA1.6 upgrade 1.7 on MAC OS, and maven3.2.1 configuration