cancel
Showing results for 
Search instead for 
Did you mean: 

Download Lib Dependencies Behind Proxy

wtw
Champ in-the-making
Champ in-the-making
Any tips on running demo.setup ant target from behind a proxy server?

Thank you.
3 REPLIES 3

jcosano
Champ in-the-making
Champ in-the-making
modify build.xml add:

<setproxy proxyhost="xx.xx.xx.xx" proxyport="xx" proxyuser="xxxxx" proxypassword="xxxxx"/>

modify setting.xml from maven

  <proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>xxx</username>
      <password>xxxxxx</password>
      <host>xx.xx.xx.xx</host>
      <port>xxx</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
  </proxies>

wtw
Champ in-the-making
Champ in-the-making
Thank you. The <setproxy/> entry in build.xml fixed my issue.

jcosano
Champ in-the-making
Champ in-the-making
If you don't change settings.xml (activiti\apps\apache-maven-2.2.1\conf)

maven can't download others sources needed.

then… In my case.. I need to change both sites.