Environment as at writing:
Build #IU-223.8214.52, built on December 20, 2022
Runtime version: 17.0.5+1-b653.23 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
-
Search and navigate to
Proxy Settings
on PC. -
Copy proxy
Address
andPort
. -
Inside the IntelliJ IDEA Settings, navigate to
Build, Execution, Deployment
>Build Tools
>Maven
>Importing
. -
Locate a field named
"VM options for importer"
. -
Append the following to whatever already exists there:
-DproxySet=true -DproxyHost=myproxy.com -DproxyPort=3128
- Here, replace
myproxy.com
with your proxy server address, (e.g. myproxyserver.com). Replace3128
with your proxy port (e.g. 8080).
- Here, replace
-
Do the same under
Maven
>Runner
. -
Apply and close the settings window.