1、下载Maven apche-maven-3、5、2
2、
三、maven简介
1、基于Ant的构建工具,Ant有的功能Maven都有,额外添加了其他的功能
2、运行原理图
2、1本地仓库:计算机中的一个文件夹,自己定义是哪个文件夹
2、2 *仓库:网上地址
2、2、1下载速度慢--配置国内镜像
2、3保证JDK版本和开发环境一致,如果不配置1、4 1、5
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
<localRepository>C:\aweb\soft\repository</localRepository>
<!-- mirrors
| This is a list of mirrors to be used in downloading artifacts from remote repositories.
|
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
| However, this repository may have problems with heavy traffic at times, so people have mirrored
| it to several places.
|
| That repository definition will have a unique id, so we can create a mirror reference for that
| repository, to be used as an alternate download site. The mirror site will be the preferred
| server for that repository.
|-->
<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>