在eclipse中集成maven

1.集成maven

Eclipse EE版本是已经集成好MAVEN的了,无需额外手动集成
可以去官网下一个

eclipse ee

2.设置maven路径

菜单->Window->Preferences->Maven->Installations->add->Directory…选择你的maven安装后的文件夹

把原来的那个低版本maven删除掉,如果有的话

3.设置仓库路径

菜单->Window->Preferences->Maven->User Settings->
Global Settings 和 User Settings都使用我们在上篇文章中自己设置的仓库下的 setting.xml 文件。

点击一下Reindex,确保 local Repository为我们设置的本地仓库位置

1
D:\maven-repository
0%