首先,eclipse和STS版本都支持maven,都存在自带的maven版本,但是基本上我们还是需要去下载自己喜欢的版本,所以我们得自己去官网下https://maven.apache.org/download.cgi,选择自己的想要的版本,安装完成本地仓库,接下就是配置eclipse。
第一步:
进入eclipse或者sts,选择window,

选择Preferences

直接通过搜索栏搜索maven

选择Installations

选择右上角的add,选择自己maven的路径

下一步选择Directory

只需要选择到apache-maven-版本号,这样就足够了;

然后apple一下,还没完,还得退回到Preferences,与上一步差不多,搜索maven,选择

选择Browse,选择自己maven本地仓库的安装路径的conf下面的setting.xml,

你就会发现,Local Repository就会出现当初你在maven安装目录下的conf目录下的setting.xml配置的本地仓库,

最后选择Apple and Close,就完成了
|