Download

cd /var/opt

wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

tar -zvxf apache-maven-3.3.9-bin.tar.gz 

Config profile

vi /etc/profile,打开环境变量配置文件 追加:export MAVEN_HOME=/var/apache-maven-3.3.9 追加:export PATH=$PATH:$MAVEN_HOME/bin

source /etc/profile

Verify

mvn -version