Maven installation
Step One: Download maven
Links: HTTP: //maven.apache.org/d ownload.cgi
Step Two: Extracting installation packages
tar zvxf apache-maven-3.5.0-bin.tar.gz
Step Three: Configure maven environment variables
vi / etc / profile editing system configuration files
#set Maven environment
export MAVEN_HOME=/usr/local/software/dir-maven/apache-maven-3.5.0
export PATH=$MAVEN_HOME/bin:$PATH
FIG follows: the configuration file into the
Step four: Reload system configuration files
source /etc/profile
Step five: Perform mvn -v to see if the installation is complete
Configuring maven repository mirroring
vim conf/settings.xml
The first step: add the following code, local warehouse location:
<localRepository>/usr/local/repository</localRepository>
Step two: modify the maven remote repository address, here with Ali cloud (download speed), can also be saved directly by default:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>