1.下載mavenapache
http://maven.apache.org/download.cgimaven
wget http://mirrors.noc.im/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gzserver
tar xzvf apache-maven-3.3.9-bin.tar.gzxml
2.設置變量get
vi /etc/profile變量
添加 export PATH="/server/maven/bin:$PATH"配置
生效 source /etc/profilefile
3.修改配置文件cgi
%MAVEN_HOME%/conf/setting.xml下載