Maven Proxy Settings don't work!?

Maven Proxy Settings don't work!?


Tried lot of settings.xml alterations and still maven cant update its repository?? Try this

Step

1. Download  : Cntlm Authentication Proxy from here 
2.Install and Configure it with your proxy details.
3. Run it like this cntlm.exe -v -a NTLMv2 -c cntlm.ini
4. Now configure back your settings.xml under .m2 like

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository />
<interactiveMode />
<usePluginRegistry />
<offline />
<pluginGroups />
<servers />
<mirrors />
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>localhost</host>
<port>3128</port>
</proxy>
</proxies>
<profiles />
<activeProfiles />
</settings>

Thats it now you can run your maven commands from console or update the user settings in eclipse to make maven fetch the required jars or reindex them.

Happy Coding..!



Share this

Related Posts

Previous
Next Post »

1 comments:

comments
13 July 2015 at 22:35 delete

Excellent alternative to NTLM proxy authentication issue.
Worked perfectly. Thanks a lot !!!

Reply
avatar