maven将代理应用于nonProxyHost

ano*_*non 7 proxy maven-3 maven

我在settings.xml文件中设置了以下代理

<proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username>someusername</username>
  <password>somepassword</password>
  <host>some.proxy.host.com</host>
  <port>5150</port>
  <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
Run Code Online (Sandbox Code Playgroud)

但它仍然将代理应用于我的localhost,每次我必须使用localhost做一些事情我必须将active更改为false.