Set HTTP Proxy

Source: Internet
Author: User

Maven passes <<userhome>>/.m2/settings.xml (if not the file, copy <<mavenhome>>/conf/settings.xml to < <userhome>>/.m2/directory) set the HTTP proxy

<?xml version= "1.0" encoding= "UTF-8"? ><settings xmlns= "http://maven.apache.org/SETTINGS/1.0.0" xmlns:x Si= "Http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "http://maven.apache.org/SETTINGS/1.0.0 http:/      /maven.apache.org/xsd/settings-1.0.0.xsd: <proxies> <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>proxyuser</username&      Gt      <password>proxypass</password> 

You can have multiple proxy elements under proxies, and if you declare multiple proxy elements, the first active proxy will take effect by default. Active is true to indicate that the agent is activated. If the agent does not require authentication, username and password elements are not required. The Nonproxyhost element is used to specify which host names do not require a proxy and can be used | Symbol to separate multiple host names, the configuration also supports wildcard characters, such as *.google.com, which means that all domain name visits ending with Google.com do not pass through the proxy.

Set HTTP Proxy

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.