1

I am trying to import a maven project into IntelliJ. My PC is connected via a proxy to the internet. I have put in the required proxy details as

-Xmx768m -DproxySet=true -DproxyHost=10.78.20.500 -DproxyPort=8100

in the VM options for Importer under Maven -> Importing
I checked the .m2 folder, where many of the files are in the .lastUpdated format. Below are a few screenshots from IntelliJ.

**Libraries**

**Problems**

I've also tried the steps mentioned here. https://intellij-support.jetbrains.com/hc/en-us/community/posts/206903515-Not-all-Maven-dependencies-appear-in-External-libraries- but it hasn't helped.

Please tell me how this can be solved.

vybiar
  • 92
  • 1
  • 10

2 Answers2

3

Maven proxy is configured in settings.xml (usually ${user.home}/.m2/settings.xml).

<settings>
  .
  .
  <proxies>
   <proxy>
      <id>example-proxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.example.com</host>
      <port>8080</port>
      <username>proxyuser</username>
      <password>somepassword</password>
      <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
    </proxy>
  </proxies>
  .
  .
</settings>
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
0

This worked

Right Click on POM --> Maven --> Open Settings.xml

Sriharsha g.r.v
  • 456
  • 5
  • 13