一.介绍

首先从本地仓库中寻找所需要的jar包,如果没有就从中央仓库中寻找。然后从中央仓库中下载使用。但是中央仓库的服务器在国外,因此速度和稳定性都不好,因此我们在中间设立远程仓库(私服),远程仓库一般是公司创立的,常用的有阿里云私服等,其实就是镜像。当本地仓库中没有时首先在远程仓库中寻找,如果远程仓库中有的话就在远程仓库中下载并调入本地仓库中使用。且远程仓库中只要有别人下载过了该jar包,就可以使用别人已经下载好的,多人共同使用管理维护。如果远程仓库中没有那么再从中央仓库中寻找下载到远程仓库中,供本地仓库使用。
二.安装

XML
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
在系统变量中配置,变量为MAVEN_HOME,值为maven的安装地址。
在path中添加环境变量,新建环境变量为:
三.查看是否安装成功
