When you are working behind a firewall, you can get connection refused error while downloading dependencies from maven repository.
You can fix it by setting up proxy in your maven's settings.xml
1. Open your maven installation directory.
2. Go to conf/settings.xml
3. Look for <proxies> tag.
4. Add below proxy profile
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>YOUR DOMAIN USERNAME</username>
<password>ACTUAL PASSWORD</password>
<host>PROXY YOU ARE WORKING BEHIND</host> <!-- You can get this from internet explorer - internet options - connections - LAN settings -->
<port>PROXY PORT (Can get same from above)</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
5. Save settings.xml
6. Try downloading dependencies again.
You can fix it by setting up proxy in your maven's settings.xml
1. Open your maven installation directory.
2. Go to conf/settings.xml
3. Look for <proxies> tag.
4. Add below proxy profile
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>YOUR DOMAIN USERNAME</username>
<password>ACTUAL PASSWORD</password>
<host>PROXY YOU ARE WORKING BEHIND</host> <!-- You can get this from internet explorer - internet options - connections - LAN settings -->
<port>PROXY PORT (Can get same from above)</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
5. Save settings.xml
6. Try downloading dependencies again.