Friday, April 10, 2015

how to proxy with apache maven

Maven local settings
C:\Users\jupiter\.m2

Maven Global settings
C:\apache-maven\conf


Copy  C:\apache-maven\conf\settings into C:\Users\jupiter\.m2

Edit and add in settings.xml

  <!-- proxies
   | This is a list of proxies which can be used on this machine to connect to the network.
   | Unless otherwise specified (by system property or command-line switch), the first proxy
   | specification in this list marked as active will be used.
   |-->
  <proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>x.x.x.x</host>
      <port>8080</port>
   </proxy>
  
  </proxies>

No comments:

Post a Comment