鏈接:https://pan.baidu.com/s/1dPFZt73-W2g6c3CxjLeigg 密碼:nhn4
安裝完成後環境變量配置
打開(bash_profile),終端輸入
open -e .bash_profile
在打開的文件中添加以下代碼(maven路徑)
export MAVEN_HOME=/Users/huangmingfeng/apache/apache-maven-3.5.3 export PATH=MAVEN_HOME/bin
然後終端輸入以下代碼,使環境變量生效
source .bash_profile
commend+n 打開終端新窗口,輸入以下代碼,查看 Maven 否安裝成功
mvn -v