Go to your maven local repository directory. e.g: c:\user\YOUR_LOGIN\.m2 for MS Windows.
Create a file name settings.xml
In this file add:
<settings>
<proxies>
<proxy>
<id>http</id>
<active>true</active>
<protocol>http</protocol>
<host>YOUR_PROXY_SERVER</host>
<port>YOUR_PROXY_PORT</port>
<username>YOUR_USER_NAME_IF_NEEDED</username>
<password>YOUR_PASSWORD_IF_NEEDED</password>
</proxy>
<proxy>
<id>https</id>
<active>true</active>
<protocol>https</protocol>
<host>YOUR_PROXY_SERVER</host>
<port>YOUR_PROXY_PORT</port>
<username>YOUR_USER_NAME_IF_NEEDED</username>
<password>YOUR_PASSWORD_IF_NEEDED</password>
</proxy>
</proxies>
</settings>