title: Proxy settings with ivy
body: <p>I have an issue where in I have defined dependancies in ivy.xml on our internal corporate svn. I am able to access this svn site without any proxy task in ant. While my dependencies resides on ibiblio, that’s something outside our corporate, and needs proxy inorder to download something. I am facing problem using ivy here.</p>
  
  <p>I have following in build.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;target name="proxy"&gt;  
      &lt;property name="proxy.host" value="xyz.proxy.net"/&gt;  
      &lt;property name="proxy.port" value="8443"/&gt;  
      &lt;setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/&gt;  
  &lt;/target&gt;  
  
  &lt;!-- resolve the dependencies of stratus --&gt;
  &lt;target name="resolveTestDependency" depends="testResolve, proxy" description="retrieve test dependencies with ivy"&gt;
      &lt;ivy:settings file="stratus-ivysettings.xml" /&gt;
      &lt;ivy:retrieve conf="test" pattern="${jars}/[artifact]-[revision].[ext]"/&gt;&lt;!--pattern here specifies where do you want to download lib to?--&gt;                                          
  &lt;/target&gt;
  
  &lt;target name=" testResolve "&gt;
      &lt;ivy:settings file="stratus-ivysettings.xml" /&gt;
      &lt;ivy:resolve conf="test" file="stratus-ivy.xml"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>Following is the excerpt from stratus-ivysettings.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;resolvers&gt;  
      &lt;!-- here you define your file in private machine not on the repo (e.g. jPricer.jar or edgApi.jar)--&gt;  
      &lt;!-- This we will use a url nd not local file system.. --&gt;  
      &lt;url name="privateFS"&gt;  
          &lt;ivy pattern="http://xyz.svn.com/ivyRepository/ [organisation]/ivy/ivy.xml"/&gt;                                                    
      &lt;/url&gt;  
  .  
  .  
  .  
      &lt;url name="public" m2compatible="true"&gt;     
          &lt;artifact pattern="http://www.ibiblio.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/&gt;  
      &lt;/url&gt;
  .  
  .  
  .  
  </code></pre>
  
  <p>So as can be seen here for getting ivy.xml, I don’t need any proxy as its within our own network which cant be accesses when I set proxy. But on the other hand I am using ibiblio as well which is external to our network and works only with proxy. So above build.xml wont work in that case. Can somebody help here.</p>
  
  <p>I don’t need proxy while getting ivy.xml (as if I have proxy, ivy wont be able to find ivy file behind proxy from within the network), and I just need it when my resolver goes to public url.</p>