Classpath Variables 中没有 M2_REPO 时,使用 New 发现新增不上。
Eclipse 里的 Maven 会去读 User Home 里的 Maven 配置文件 settings.xml,预设是没有这个文档的,所以会使用默认的位置 ${user.home}/.m2/repository。
settings.xml 配置文件里面有个 localRepository 标签,更改你想要的地址就可以了。
Classpath Variables 中没有 M2_REPO 时,使用 New 发现新增不上。
Eclipse 里的 Maven 会去读 User Home 里的 Maven 配置文件 settings.xml,预设是没有这个文档的,所以会使用默认的位置 ${user.home}/.m2/repository。
settings.xml 配置文件里面有个 localRepository 标签,更改你想要的地址就可以了。