First, download and upload maven to Linux:
https://mirror.bit.edu.cn/apache/maven/maven-3/3.5.4/binaries/
Second, unzip maven:
mkdir -p /usr/local/maven
tar -zxvf apache-maven-3.5.4-bin.tar.gz -C /usr/local/maven/ --strip-components 1
Third, configure maven, first determine the configuration delete history may exist:
export MAVEN_HOME=/usr/local/maven
export PATH=$MAVEN_HOME/bin:$PATH
Validate the configuration:
source /etc/profile
View JAVA Version:
mvn -version