Mac 上安装maven

http://maven.apache.org/download.cgi

官网下载bin.tar

解压后放入某个目录:

配置环境变量:

vim .bash_profile
M2_HOME=/maven/apache-maven-3.6.0
PATH=$M2_HOME/bin:$PATH
export M2_HOME
export PATH

最后刷新一下:

source .bash_profile

done:

猜你喜欢

转载自www.cnblogs.com/leechenxiang/p/10505462.html