Eclipse 修改maven 仓储Repository位置

微信扫一扫,分享到朋友圈

Eclipse 修改maven 仓储Repository位置
67608

前几天接了一个APP的项目,down下来后发现pom文件报错,检查后发现pom指定的包都没有下载下来

 

再仔细观察 项目buildpath中指定的repository 并不是我自己的maven安装路径,是C盘用户下的某个位置,我的maven仓库在D盘

修改eclipse项目中maven 仓库的路径步骤如下:

1.确认maven的配置文件中 repository的设定路径 进入conf/ 修改setting.xml项

 

<localRepository>D:/Maven/repo-im</localRepository>

 

2.进入Eclipse 的 Preference -> Maven ->User Settings 修改如下图:

 

apply即可

我还没有学会写个人说明!
上一篇

为什么要使用SLF4J而不是Log4J 有什么区别

下一篇

SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener 的解决办法

你也可能喜欢

发表评论

插入图片
返回顶部