一、下载maven安装包
wget https://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
二、解压安装包
tar -zxvf apache-maven-3.5.4-bin.tar.gz
三、配置
vi /etc/profile export MAVEN_HOME=/var/local/apache-maven-3.5.2 export PATH=$PATH:$MAVEN_HOME/bin source /etc/profile
四、验证安装结果
mvn -version