maven:behind_proxy_server

Maven: Behind Proxy Server

  1. Go to your maven local repository directory. e.g: c:\user\YOUR_LOGIN\.m2 for MS Windows.
  2. Create a file name settings.xml
  3. In this file add:
<settings>
  <proxies>
   <proxy>
      <id>http</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>YOUR_PROXY_SERVER</host>
      <port>YOUR_PROXY_PORT</port>
      <username>YOUR_USER_NAME_IF_NEEDED</username>
      <password>YOUR_PASSWORD_IF_NEEDED</password>
    </proxy>
   <proxy>
      <id>https</id>
      <active>true</active>
      <protocol>https</protocol>
      <host>YOUR_PROXY_SERVER</host>
      <port>YOUR_PROXY_PORT</port>
      <username>YOUR_USER_NAME_IF_NEEDED</username>
      <password>YOUR_PASSWORD_IF_NEEDED</password>
    </proxy>
  </proxies>
</settings>
  • maven/behind_proxy_server.txt
  • Last modified: 2018/12/19 17:04
  • by chongtin