1.下载可执行文件
https://maven.apache.org/download.cgi
2.解压缩
3.修改权限
chown -R root:wheel Downloads/apache-maven*
4.改变目录
mv Downloads/apache-maven* /opt/apache-maven
5.添加环境变量
nano $HOME/.profile
export PATH=$PATH:/opt/apache-maven/bin
1.下载可执行文件
https://maven.apache.org/download.cgi
2.解压缩
3.修改权限
chown -R root:wheel Downloads/apache-maven*
4.改变目录
mv Downloads/apache-maven* /opt/apache-maven
5.添加环境变量
nano $HOME/.profile
export PATH=$PATH:/opt/apache-maven/bin
本文标题:mac如何安装maven
本文链接:https://www.haomeiwen.com/subject/xgglhltx.html
网友评论