Is it possible to use proxy only when a specific profile is active in Maven?
问题 I would like to use proxy only when a specific profile is active. To accomplish this, my guess is to parameterize the <active> property of <proxy> element. However, I am not exactly sure how to accomplish this. Question : How can I use proxy only when a specific profile is active? 回答1: You could try the following approach: <settings> <proxies> <proxy> <id>httpproxy</id> <active>${activate.proxy}</active> <protocol>http</protocol> <host>some.host</host> <port>8080</port> <nonProxyHosts