How to configure settings.xml in Maven? Also, please share a sample settings.xml .
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