Eclipse 自定义本地maven仓库位置

又一年 2017-10-30 20:08

1、在maven安装目录下找到maven的settings.xml文件

setting.xml主要用于配置maven运行环境等一系列通用的属性,是全局级别的配置文件。

Eclipse 自定义本地maven仓库位置

图1

2、配置maven仓库位置

Eclipse 自定义本地maven仓库位置

图2

3、eclipse,window-->preferences

在User Settings设置好settings.xml文件路径后,Local Repository路径会自动加载出来

Eclipse 自定义本地maven仓库位置