JHipster configure maven wrapper proxy
<p>According to <a href="https://jhipster.github.io/configuring-a-corporate-proxy/" rel="noreferrer">https://jhipster.github.io/configuring-a-corporate-proxy/</a> I have set up my proxy settings in /.m2/settings.xml like this : </p>

<pre><code>  &lt;proxies&gt;
    &lt;proxy&gt;
      &lt;id&gt;myId&lt;/id&gt;
      &lt;active&gt;true&lt;/active&gt;
      &lt;protocol&gt;http&lt;/protocol&gt;
      &lt;username&gt;myDomain\myUsername&lt;/username&gt;
      &lt;password&gt;myPassword&lt;/password&gt;
      &lt;host&gt;myHost&lt;/host&gt;
      &lt;port&gt;myPort&lt;/port&gt;
    &lt;/proxy&gt;
  &lt;/proxies&gt;
</code></pre>

<p>But somehow it is not working when I'm trying to mvnw the project, it's giving me :</p>

<pre><code>Exception in thread "main" java.net.ConnectException: Connection refused: connect
</code></pre>

<p>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.</p>

<pre><code>set MAVEN_OPTS=-Dhttps.proxyHost=myHost -Dhttps.proxyPort=myPort -Dhttps.proxyUser=myDomain\myUsername -Dhttps.proxyPassword=myPassword
</code></pre>

<p>Anyone can help ?</p>

<p>Thanks in advance.</p>