下载Maven源码包
wget https://mirrors.bfsu.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar zxvf apache-maven-3.6.3-bin.tar.gz -C /data/software/maven-3.6.3
vim /etc/profile/
export MAVEN_HOME=/data/software/maven-3.6.3
export PATH=$PATH:$MAVEN_HOME/bin
source /etc/profile
阿里云Maven仓库配置
vim /data/software/maven-3.6.3/conf/settings.xml
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/repository/central</url>
</mirror>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>