1、mac安装brew
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
2、mac安装maven并配置环境变量
- 下载maven:https://maven.apache.org/download.cgi#downloading-apache-maven-3-8-1
vim ~/.bash_profile
export M2_HOME=/Users/robbie/apache-maven-3.5.0 export PATH=$PATH:$M2_HOME/bin
source ~/.bash_profile
mvn -v