Maven安装(Linux)
下载地址:https://maven.apache.org/download.cgi
1.在/usr/local下面下载maven安装包:
1 | wget http://apache.opencas.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz |
2.解压maven安装包
1 | mkdir /usr/local/maven |
3.配置环境变量
1 | vi /etc/profile |
4.编译环境变量
1 | source /etc/profile |
5.验证是否成功
1 | mvn -version |
本文地址 Maven安装(Linux)