Maven quick installation -CentOS7

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

Published 48 original articles · won praise 13 · views 20000 +

Guess you like

Origin blog.csdn.net/u012725623/article/details/104909132