1.下载maven
http://maven.apache.org/download.cgi
wget http://mirrors.noc.im/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar xzvf apache-maven-3.3.9-bin.tar.gz
2.设置变量
vi /etc/profile
添加 export PATH="/server/maven/bin:$PATH"
生效 source /etc/profile
3.修改配置文件
%MAVEN_HOME%/conf/setting.xml