title: Adding Archiva repo to Ivy
body: <p>I'm trying to add an archiva-repo to ivy buit it doesn't work.</p>
  
  <p>Here are the used files:</p>
  
  <p><em>ivy.xml</em></p>
  
  
  
  <pre><code>&lt;ivy-module version="2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"&gt;
  &lt;info organisation="in.ex" module="ivy-example" status="integration"&gt;
  &lt;/info&gt;
  &lt;dependencies&gt;
      &lt;dependency org="commons-lang" name="commons-lang" rev="2.6" /&gt;
  &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p><em>ivysettings.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ivysettings&gt;
  &lt;settings defaultResolver="archiva" /&gt;
  &lt;credentials host="http://myarchiva/archiva/" realm="Apache Archiva"
      username="user" passwd="pwd" /&gt;
  &lt;property name="archiva-internal"
      value="http://myarchiva/archiva/repository/internal" /&gt;
  &lt;resolvers&gt;
      &lt;ibiblio name="archiva" m2compatible="true" root="${archiva-internal}" /&gt;
  &lt;/resolvers&gt;
  &lt;/ivysettings&gt;
  </code></pre>
  
  <p><em>build.xml</em></p>
  
  <pre><code>&lt;project name="ivy example" default="resolve" xmlns:ivy="antlib:org.apache.ivy.ant"&gt;
  
  &lt;target name="resolve" description="resolve dependencies with ivy"&gt;
      &lt;ivy:settings file="ivysettings.xml" /&gt;
      &lt;ivy:retrieve /&gt;
  &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>When i run the ant task, the following error is shown:</p>
  
  <pre><code>module not found: commons-lang#commons-lang;2.6
  ==== archiva: tried
  http://myarchiva/archiva/repository/internal/commons-lang/commons-lang/2.6/commons-lang-2.6.pom
  -- artifact commons-lang#commons-lang;2.6!commons-lang.jar:
  http://myarchiva/archiva/repository/internal/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
  </code></pre>
  
  <p>It seems, that the commons-lang was not found but it is still there. When i try the url in my browser, I'm getting the jar.</p>
  
  <p>Can somebody please help me? Thanks!</p>