eclipse无法修改maven默认的本地仓库位置(即eclipse配置maven仓库,reindex无效)

1.windows->Preferences->maven,到如下界面
在这里插入图片描述
继续
2.
我这里是配好了在这里插入图片描述
继续
3.
在这里插入图片描述

如果还不行,那就本地
在这里插入图片描述

  <!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ${user.home}/.m2/repository
  <localRepository>D:\repository</localRepository>
  -->
<localRepository>D:\repository</localRepository>

在这里插入图片描述
箭头那一块,人家是注释了,切记切记切记,你需要重新指定本地仓库位置。

发布了86 篇原创文章 · 获赞 5 · 访问量 8897

猜你喜欢

转载自blog.csdn.net/qq_35367566/article/details/103775508