Most organization do not allow the employee to connect their devices directly to internet. They use HTTP proxy server to access the internet. All the traffic goes through this HTTP server. To use MAVEN behind HTTP proxy we have to define some setting that contains the address of proxy server.
Using maven behind proxy
To use maven behind the proxy we have to define the proxy setting in setting.xml file, inside the proxy element.
The setting file is found in /etc/maven/setting.xml
Add the following line under proxy element
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>192.168.1.100</host>
<port>3128</port>
<username>your-username</username>
<password>your-password</password>
</proxy>
</proxies>
</settings>
What is Maven ?
No comments:
Post a Comment