Sample settings.xml for maven

后端 未结 3 867
庸人自扰
庸人自扰 2020-12-02 04:28

How to configure settings.xml in Maven? Also, please share a sample settings.xml .

3条回答
  •  感动是毒
    2020-12-02 05:08

    The reference for the user-specific configuration for Maven is available on-line and it doesn't make much sense to share a settings.xml with you since these settings are user specific.

    If you need to configure a proxy, have a look at the section about Proxies.

    
      ...
      
        
          myproxy
          true
          http
          proxy.somewhere.com
          8080
          proxyuser
          somepassword
          *.google.com|ibiblio.org
        
      
      ...
    
    
    • id: The unique identifier for this proxy. This is used to differentiate between proxy elements.
    • active: true if this proxy is active. This is useful for declaring a set of proxies, but only one may be active at a time.
    • protocol, host, port: The protocol://host:port of the proxy, seperated into discrete elements.
    • username, password: These elements appear as a pair denoting the login and password required to authenticate to this proxy server.
    • nonProxyHosts: This is a list of hosts which should not be proxied. The delimiter of the list is the expected type of the proxy server; the example above is pipe delimited - comma delimited is also common

提交回复
热议问题