当maven装好之后出现
$ mvn -versionError: JAVA_HOME is not defined correctly. We cannot execute /usr/libexec/java_home/bin/java解决:
$ vim .bash_profile export JAVA_HOME=$(/usr/libexec/java_home) $ source .bash_profile