When Maven is blocked by a company proxy and doesn't work

When I transferred today, the project didn't work.

It seems that the communication did not reach Maven Central due to the company's proxy settings. That's why I made a note of how to set Maven proxy.

Check proxy settings in IE

プロキシ.png

First, let's open Internet Explorer and check the settings.

** Tools **> ** Internet Options **> ** Open Connection Tab ** ** LAN Settings ** **

Create setting.xml

After checking the URL of the proxy server, create a maven configuration file.

setting.xml



<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.hoge.local</host>
      <port>8080</port>
    </proxy>
  </proxies>
</settings>

Let maven of eclipse read the settings.

** window **> ** settings **> ** Maven **> ** User Settings **

Open Maven settings from Load the xml file you set earlier in User Settings.

image.png

Done!

The Update Project should now work from Maven.

Recommended Posts

When Maven is blocked by a company proxy and doesn't work
A memorandum when running Apache Maven on an in-house proxy
[Beginner] When rails s doesn't work
When PyCall doesn't work with PyCall :: PythonNotFound
When internationalizing is supported by Spring Boot, a specific locale is not translated and I am addicted to it