1、Maven的安装包
A.官网下载地址
Maven官网地址
http://maven.apache.org/download.cgi
B.安装包下载
2、settings.xml文件配置
A.使用配置好的settings.xml文件
①下载下面的settings.xml文件并将其保存至个人配置目录
②修改自己的本地仓库地址
B.从安装包中conf目录下的settings.xml配置
①配置私服仓库

<!-- 阿里云仓库 --><mirror><id>alimaven</id><mirrorOf>central</mirrorOf><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/repositories/central/</url></mirror><mirror><id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf></mirror><!-- 中央仓库 --><mirror><id>repo</id><mirrorOf>central</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://repo1.maven.org/maven2/</url></mirror><mirror><!-- 官方源1--><id>central</id><name>Maven Repository Switchboard</name><url>http://repo1.maven.org/maven2/</url><mirrorOf>central</mirrorOf></mirror><mirror><!-- 官方源2--><id>repo2</id><mirrorOf>central</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://repo2.maven.org/maven2/</url></mirror><mirror><!-- ibiblio镜像源--><id>ibiblio</id><mirrorOf>central</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url></mirror><mirror><!-- jboss镜像源--><id>jboss-public-repository-group</id><mirrorOf>central</mirrorOf><name>JBoss Public Repository Group</name><url>http://repository.jboss.org/nexus/content/groups/public</url></mirror><!-- 中央仓库在中国的镜像 --><mirror><id>maven.net.cn</id><name>oneof the central mirrors in china</name><url>http://maven.net.cn/content/groups/public/</url><mirrorOf>central</mirrorOf></mirror>
②配置本地仓库地址
4、配置系统的Maven环境变量
A.新建MAVEN_HOME变量
B.添加变量至系统Path变量
5、在IDEA中配置Maven
A.在当前项目配置Maven
2.在IDEA中对新项目配置Maven


