- 安装jdk
- 下载:
https://maven.apache.org/download.cgi
- 解压并
vim ~/.bash_profile
export M2_HOME="/usr/local/apache-maven-3.5.4"
export PATH="$M2_HOME/bin:$PATH"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home"
- 查看是否安装成功
mvn -v