Eclipse开发web项目配置maven!

用Eclipse开发web项目需要自行配置maven。(ps:用自带需下载量大,时间久)

配置流程:Eclipse->window->preferences->Maven->User Settings->点击Browse选择User Settings为本地maven settings.xml文件->点击Apply and Close 配置完成

Eclipse开发web项目配置maven!

 

Eclipse开发web项目配置maven!

注:执行以上步骤前需先配置maven文件本地存储库(localRepository)为本人maven存放地址

1、打开maven进入conf文件夹

Eclipse开发web项目配置maven!

2、打开settings.xml文件

Eclipse开发web项目配置maven!

3、找到<localRepository>(大概在55行)把默认地址修改成自己maven存放地址。比如在F:/Maven/maven则改为F:/Maven/maven/repo,保存退出。

Eclipse开发web项目配置maven!

maven下载链接:https://pan.baidu.com/s/1eKCxz7FDeGfTmjV5IsBIZA 
提取码:jmuc