安装过程遇到2个问题
1.java版本不对
2.Error: JAVA_HOME is not defined correctly.
We cannot execute $/usr/libexec/java_home/bin/java
解决方案:
1.解决方法
/usr/libexec/java_home/bin/java
2.
Error: 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
结果:成功!!
Maven home: /Users/liuchuanwu/apache-maven-3.3.3
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8