1.下载
wget https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz --no-check-certificate
2.解压
tar -zxvf apache-maven-3.8.8-bin.tar.gz
3. /etc/profile配置 环境变量
export MAVEN_HOME=/root/apache-maven-3.8.8
export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH
4.刷新文件
source /etc/profile
5.修改/root/apache-maven-3.8.8/conf/settings.xml
<localRepository>/root/mavenCangKu</localRepository>
<mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror>
标签:bin,tar,centos,maven,apache,HOME,安装,3.8 From: https://www.cnblogs.com/entertain/p/18121727