linux install maven 3.8 version

Article directory

1: maven warehouse official website

 2. Download the installation package 

 3. Use: Xftp to upload to the directory you want to put

 4. Unzip the file

​edit

 5. Configure environment variables

​edit

6. Refresh the /etc/profile file

 7. View maven version


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 

Guess you like

Origin blog.csdn.net/XikYu/article/details/130780890