Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ifejeremiah/c88cf162f407350c4c7d7e4d4f935c2b to your computer and use it in GitHub Desktop.
Save Ifejeremiah/c88cf162f407350c4c7d7e4d4f935c2b to your computer and use it in GitHub Desktop.

Configure IntelliJ to Download dependencies over A Proxy Server.

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.

Steps:

  • Search and navigate to Proxy Settings on PC.

  • Copy proxy Address and Port.

  • 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). Replace 3128 with your proxy port (e.g. 8080).
  • Do the same under Maven > Runner .

  • Apply and close the settings window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment