Most organizations do not allow devices in their network to access the Internet directly for security and other reasons. In such cases, typically, a proxy server comes into picture. The proxy server details are specified in the browser or any other location where access to the Internet is required.
Let's start running Maven behind an HTTP proxy server, by performing the following steps:
settings.xmlfile in the
.m2folder in your
HOMEdirectory, if it does not exist already.
<proxies> <proxy> <id>myproxy</id> <active>true</active> <protocol>http</protocol> <host>proxy.myorg.com</host> <port>8080</port> <username>proxyuser</username> <password>somepassword</password> ...