In the following post, we learned how to install Apache Maven on Windows 10
How to install Apache Maven on Windows?
If your development PC is behind a proxy network, you will not be able to add Java dependencies through Maven. Luckily Maven provides us with proxy settings.
E:\apache-maven-3.6.2\conf
<proxy>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
Now you will be able to download and install the Java dependencies behind the proxy network.
How to install Apache Maven on Windows?
If your development PC is behind a proxy network, you will not be able to add Java dependencies through Maven. Luckily Maven provides us with proxy settings.
Add your network proxy to Maven's proxy settings
STEP 1:
Navigate to your maven's directory and open conf folderE:\apache-maven-3.6.2\conf
STEP 2:
Open settings.xml in your favorite text editorSTEP 3:
Uncomment the proxy tag inside proxies tag and add the values according to your network's proxy settings.<proxy>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
STEP 4:
If you are using the Eclipse IDE, add your network's proxy settings as follows
Now you will be able to download and install the Java dependencies behind the proxy network.
Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work.. Click Here Link
ReplyDeletethank you
ReplyDelete