1.在.m2中新建settings.xml文件
1.window--》Preferences--》Maven--》User Settings
3.点击open file 编辑将远程仓库配置进去。点击Update Settings即可。
Nexus Nexus Public Mirror http://121.42.166.202:8081/nexus/content/groups/public central dev Nexus http://121.42.166.202:8081/nexus/content/groups/public true always warn true never fail Nexus http://121.42.166.202:8081/nexus/content/groups/public true warn true fail dev
4.alt+F5重新构建项目