目标
配置Mac上面的Maven能够访问公司私有库。
settings.xml
vim ~/.m2/settings.xml
<settings>
<servers>
<server>
<id>库id</id>
<username>username</username>
<password>passwd</password>
</server>
</servers>
<proxies>
<proxy>
<id>ss</id>
<active>true</active>
<protocol>http</protocol>
<host>127.0.0.1</host>
<port>1087</port>
<username></username>
<password></password>
<nonProxyHosts>127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
</settings>
一图胜千言: