title: Ivy custom url resolver
body: <p>I am trying to create custom resolver in my ivysettings.xml file:</p>
  
  <pre><code>&lt;ivysettings&gt;
      &lt;settings defaultResolver="default"/&gt;
      &lt;resolvers&gt;
          &lt;chain name="default"&gt;
              &lt;url name="scala-tools"&gt;
                  &lt;ivy pattern="http://scala-tools.org/repo-releases/[organisation]/[module]/[revision]/ivy-[revision].xml" /&gt;
                  &lt;artifact pattern="http://scala-tools.org/repo-releases/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/&gt;
                  &lt;artifact pattern="http://scala-tools.org/repo-releases/[organisation]/[module]/[revision]/[artifact].[ext]"/&gt;
              &lt;/url&gt;
              &lt;!--&lt;ibiblio name="ibiblio"/&gt;--&gt;
          &lt;/chain&gt;
      &lt;/resolvers&gt;
  &lt;/ivysettings&gt;
  </code></pre>
  
  <p>As you can see, I have just one UrlResolver that will try to find my dependencies in <a href="http://scala-tools.org/repo-releases/" rel="nofollow noreferrer">scala-tools repo</a>. If I specify my dependencies <a href="http://mvnrepository.com/artifact/org.scala-lang/scala-library/2.8.0" rel="nofollow noreferrer">correctly</a> than ivy will try to find it in <a href="http://scala-tools.org/repo-releases/org.scala-lang/scala-library/2.8.0/scala-library-2.8.0.jar" rel="nofollow noreferrer">http://scala-tools.org/repo-releases/org.scala-lang/scala-library/2.8.0/scala-library-2.8.0.jar</a> and <a href="http://scala-tools.org/repo-releases/org.scala-lang/scala-library/2.8.0/scala-library.jar" rel="nofollow noreferrer">http://scala-tools.org/repo-releases/org.scala-lang/scala-library/2.8.0/scala-library.jar</a> (yep, according to my instructions in ivysettings.xml) Obviously, it doesn't find anything. To get thing working I must specify dependencies in this way:</p>
  
  <pre><code>&lt;ivy-module version="2.2"&gt;
      &lt;info organisation="org.yoba" module="Yoba"/&gt;
      &lt;dependencies&gt;
          &lt;dependency org="org/scala-lang" name="scala-library" rev="2.8.0"/&gt;
          &lt;!--&lt;dependency org="org.scala-lang" name="scala-library" rev="2.8.0"/&gt;--&gt;
          &lt;dependency org="org/scala-lang" name="scala-compiler" rev="2.8.0"/&gt;
          &lt;!--&lt;dependency org="org.scala-lang" name="scala-compiler" rev="2.8.0"/&gt;--&gt;
      &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>Q:How to change artifact pattern / something else to force ivy to make it's job right way?</p>
  
  <p><a href="http://scala-tools.org/repo-releases/" rel="nofollow noreferrer">1</a>: <a href="http://scala-tools.org/repo-releases/" rel="nofollow noreferrer">http://scala-tools.org/repo-releases/</a> scala-tools repo</p>