修改eclipse中M2_REPO变量值

Classpath Variables 中没有 M2_REPO 时,使用 New 发现新增不上。

image

Eclipse 里的 Maven 会去读 User Home 里的 Maven 配置文件 settings.xml,预设是没有这个文档的,所以会使用默认的位置 ${user.home}/.m2/repository。

image

settings.xml 配置文件里面有个 localRepository  标签,更改你想要的地址就可以了。

猜你喜欢

转载自www.cnblogs.com/Tty725/p/11445847.html