一.配置maven
1.解压maven包
2.配置环境变量
3.在eclipse里添加maven
4.找到解压路径 编辑settings.xml
5.编辑如下
代码:
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
6.修改本地仓库
这样就把仓库设置到了F:\mavencangku\repository,以后所下载的jar包都在这里边了。
7.复制settings.xml到本地仓库
8.eclipse添加settings.xml
二.用eclipse创建maven下的web项目
1.file>new>maven project
2.创建
3.创建完成 配置 右键>properties>project pacets
4.勾选 点击下边
5.配置
7.