Article directory
1: maven warehouse official website
2. Download the installation package
3. Use: Xftp to upload to the directory you want to put
5. Configure environment variables
6. Refresh the /etc/profile file
1: maven warehouse official website
Maven – Download Apache Mavenhttps://maven.apache.org/download.cgi
2. Download the installation package
3. Use: Xftp to upload to the directory you want to put
4. Unzip the file
cd usr/maven/
tar -zxvf apache-maven-3.8.8-bin.tar.gz
5. Configure environment variables
vim /etc/profile
export MAVEN_HOME=/usr/maven/apache-maven-3.8.8
export PATH=$MAVEN_HOME/bin:$PATH
6. Refresh the /etc/profile file
source /etc/profile
7. View maven version
mvn -v