OSX 下maven的settings.xml 位置

Created: Aug. 3, 2018, 4:10 p.m. Updated: Aug. 3, 2018, 4:19 p.m.
  1. 用户的设置在 ${user.home}/.m2/settings.xml.

  2. 全局的设置在 ${maven.home}/conf/settings.xml.

如果是brew安装的,settings.xml 在这里

/usr/local/Cellar/maven/<version>/libexec/conf

附个使用阿里云的源加速的设置

    <mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>*</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>