我已将${user.home}/.m2/settings.xml
配置为使用use proxy,我有几个存储库。是否可以使用存储库之一不使用代理?
settings.xml的一部分
<settings ...>
...
<proxies>
<proxy>
<id>...</id>
<active>true</active>
<protocol>http</protocol>
<host>...</host>
<port>80</port>
<username>...</username>
<password>...</password>
<nonProxyHosts>...</nonProxyHosts>
</proxy>
</proxies>
<profiles>
<profile>
<id>...</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository> <!-- there is more repositories like this -->
<id>...</id>
<name>...</name>
<url>...</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
.....
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>snapshots</activeProfile>
</activeProfiles>