N
N
Nikolay Baranenko2017-02-02 08:41:58
Maven
Nikolay Baranenko, 2017-02-02 08:41:58

How to make Maven work through Proxy in Intellig IDEA?

Hello.
Sometimes you have to work with a project on Intellig IDEA, where the Internet connection is only through Proxy.
I tried to add the options -DproxySet=true -DproxyHost=PROXY -DproxyPort=1111 to the
VM Options for Importer parameters and did not appear in the local MAVEN repository. How to make Maven work through Proxy in Intellig IDEA?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Baranenko, 2017-02-08
@drno-reg

Everything turned out to be much simpler:
We look in IDEA which version of Maven is selected,
then in the
IntelliJ IDEA\plugins\maven\lib\maven3\conf\ folder
we find settings.xml
and edit the block responsible for the proxy
, uncomment it and make our proxy settings

<proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>имя</username>
      <password>пароль</password>
      <host>proxy</host>
      <port>111</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>

and all MAVEN earned through a proxy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question