1.mkdir -p /data/maven
2.wget http://mirrors.shu.edu.cn/apache/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
3.tar -zxvf apache-maven-3.5.3-bin.tar.gz
4.修改conf setting
1 | <mirror> |
5.vi /etc/profile
1 | export MAVEN_HOME=/usr/local/maven/apache-maven-3.5.2 |
保存source /etc/profile