Maven Installation Method 1. Download the latest Maven tar.gz package from MAVEN official website http://maven.apache.org/download.cgi and upload it to CentOS
Method 2. or directly on the CentOS wget command to get
2.1 First to get the latest maven download address on the website
Http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
2.2 Creating a Maven Directory
mkdir maven
2.3 Then go to CD maven
2.4 Last
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
Download maven
2.5 Decompression
TAR-XVF apache-maven-3.3.9-bin.tar.gz
This installs the environment configuration Execution Vi/etc/profile Edit Profile Insert
Note:
/data/maven/apache-maven-3.3.9 This is your MAVEN unzip directory after you save the file, execute the source/etc/profile command to make the changes take effect execute the MVN-V command to see if MAVEN version verification was successful