According to https://jhipster.github.io/configuring-a-corporate-proxy/ I have set up my proxy settings in /.m2/settings.xml like this :
<proxies>
<proxy>
<id>myId</id>
<active>true</active>
<protocol>http</protocol>
<username>myDomain\myUsername</username>
<password>myPassword</password>
<host>myHost</host>
<port>myPort</port>
</proxy>
</proxies>
But somehow it is not working when I'm trying to mvnw the project, it's giving me :
Exception in thread "main" java.net.ConnectException: Connection refused: connect
I managed to get it work while passing below parameters to MAVEN_OPTS but I would like to do so with settings.xml file only.
set MAVEN_OPTS=-Dhttps.proxyHost=myHost -Dhttps.proxyPort=myPort -Dhttps.proxyUser=myDomain\myUsername -Dhttps.proxyPassword=myPassword
Anyone can help ?
Thanks in advance.