출처 : this question 설치가 작동하려고하지만 원격 사이트에 연결할 수 없으므로 테스트가 계속 실패합니다. 나는 Maven 3.3.9로 업그레이드했다.Maven의 settings.xml에있는 프록시
이 내 내가 싶어 settings.xml
을 작업 :
<settings>
<proxies>
<proxy>
<id>httpProxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.local</host>
<port>3128</port>
<nonProxyHosts>localhost|*.local</nonProxyHosts>
</proxy>
<proxy>
<id>httpsProxy</id>
<active>true</active>
<protocol>https</protocol>
<host>10.20.20.208</host>
<port>3128</port>
<nonProxyHosts>localhost|*.local</nonProxyHosts>
</proxy>
</proxies>
:
이 이미 작동하지 않는 작은 부분입니다 :
<settings>
<proxies>
<proxy>
<protocol>https</protocol>
<host>10.20.20.208</host>
<port>3128</port>
</proxy>
</proxies>
:
가 나는 또한 IP-주소를 넣어 시도 거기에.
Maven은 디버그 메시지에서 그렇게 말하고 Maven의 문법을 깨면 불평한다.
실제로 작동하는 유일한 것은 -Dhttps.proxyHost=proxy.local -Dhttps.proxyPort=3128
을 Maven에 전달하는 것입니다.
내가 XML에서 잘못하고있는 것은 무엇입니까?