1. Ensure that the project has a JDK installed
Please enter java-version in the system to see if the command exists
If the JDK is not installed, please go to the JDK installation under Centos/linux
2. Download maven
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz
2. Extracting Maven Files
Unzip the file into the Dev folder
If the extract to the current directory please-C.. /dev Delete
TAR-ZXVF apache-maven-3.5.0-bin.tar.gz-c. /dev/
3. Configure the MAVEN environment variables
Vim/etc/profile
On the last side, add
Export Maven_home=/root/dev/apache-maven-3.5.0export path= $PATH: $MAVEN _home/bin
Finally press ESC to enter: WQ
Make a file effective
Source/etc/profile
4. Test if MAVEN is installed successfully
Mvn-version
The following view appears to be successful
Installation of Maven under Centos/linux