假设很容易,但我很难将Maven安装到我的mac 10.11.4上。
我为Maven创建了M2_HOME和PATH,但当我输入mvn --version
时,终端告诉我
/Users/justin/apache-maven-3.3.9/bin/mvn: line 53: uname: command not found
/Users/justin/apache-maven-3.3.9/bin/mvn: line 143: which: command not found
/Users/justin/apache-maven-3.3.9/bin/mvn: line 171: which: command not found
Error: JAVA_HOME is not defined correctly.
We cannot execute
为什么会这样?