title: apache ivy - what to have in the ivysettings.xml
body: <p>I have been playing with the basic <a href="http://ant.apache.org/ivy/history/latest-milestone/tutorial.html" rel="nofollow noreferrer">Ivy Tutorial</a> and have gradually extended to a state where I now have a seprate ivy.xml defining my dependancies and with the ivy jar inside the apache ant installation.</p>
  <p>I have also managed to define a shared repository to stop ivy popping off to an external repository. This has been done by defining properties in the resolve task.</p>
  <pre><code>&lt;target name=&quot;resolve&quot; depends=&quot;&quot; description=&quot;Resolve the dependencies&quot;&gt;  
      &lt;property name=&quot;ivy.shared.default.root&quot;             value=&quot;C:/ivy/localLibsStore&quot; /&gt;
      &lt;property name=&quot;ivy.shared.default.artifact.pattern&quot; value=&quot;[module]/[revision]/[type]s/[artifact]-[revision].[ext]&quot; /&gt;
          &lt;ivy:retrieve/&gt;  
      &lt;/target&gt; 
  </code></pre>
  <p>However I have tried moving these properties into a separate ivysettings.xml file with no luck.</p>
  <p><strong>So the question is what should I have in my ivysettings.xml ?</strong></p>
  <p>My latest attempt below gives the error:</p>
  <blockquote>
  <p>unknown resolver null</p>
  <p>no resolver found for ...</p>
  </blockquote>
  <pre><code>&lt;ivysettings&gt;
      &lt;property name=&quot;ivy.shared.default.root&quot;             value=&quot;C:/ivy/localLibsStore&quot; /&gt;
      &lt;property name=&quot;ivy.shared.default.artifact.pattern&quot; value=&quot;[module]/[revision]/[type]s/[artifact]-[revision].[ext]&quot; /&gt;
  
          &lt;resolvers&gt;
              &lt;filesystem name=&quot;shared&quot;&gt;
                &lt;ivy pattern=&quot;${ivy.shared.default.root}/${ivy.shared.default.ivy.pattern}&quot; /&gt;
                &lt;artifact pattern=&quot;${ivy.shared.default.root}/${ivy.shared.default.artifact.pattern}&quot; /&gt;
              &lt;/filesystem&gt;
          &lt;/resolvers&gt;
  &lt;/ivysettings&gt;
  </code></pre>