-
Navigate to
Maven > Importing1. inside the IntelliJ IDEA Settings (which is found underFile > Settings). -
The second last option in
Maven > Importingis a field named “VM options for importer”. Append the following to whatever already exists there:-DproxySet=true -DproxyHost=myproxy.com -DproxyPort=3128Here, replace
myproxy.comwith your proxy server, (e.g. http://myproxyserver.com). Replace3128with your proxy port (e.g. 8080). -
Do the same under
Maven > Runner1 -
Apply and close the settings window.
It should work now.
1 This may be nested under Build, Execution, Deployment > Build Tools >, depending on the version of IntelliJ you’re using.