<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>10.51.0.90</host>
<port>8181</port>
</proxy>
</proxies>
</settings>
我不想使用任何代理..如何配置以及在此xml文件中要做的更改
答案 0 :(得分:0)
保持xml文件不变;只需删除主机地址和端口。如下所示
<host></host><port></port>
答案 1 :(得分:0)
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username></username>
<password></password>
<host>proxies.proxy.host</host>
<port>8080</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
答案 2 :(得分:0)
您可以通过将true更改为false来关闭Maven代理:
<proxy>
<id>optional</id>
<active>false</active>
</proxy>