Maven将代理应用于nonProxyHost [英] maven applying proxy to nonProxyHost

查看:90
本文介绍了Maven将代理应用于nonProxyHost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have the following proxy set up in my settings.xml file

<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>

但是它仍然将代理应用于我的本地主机,每次我必须对本地主机执行某些操作时,都必须将active更改为false.

But it still applies the proxy to my localhost, everytime I have to do something with localhost I have to change active to false.

推荐答案

根据docs [1]您可以设置

According to the docs[1] you can set

<useProxy>false</useProxy>

以防止这种情况发生.

[1] http://dev.day.com/docs/zh-CN/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html#Common%20Parameters

这篇关于Maven将代理应用于nonProxyHost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆