title: Ivy doesn't find my artifact in filesystem
body: <p>I've got an artifact in my local filesystem, but Ivy doesn't resolve it unless I put the &lt;filesystem&gt; resolver inside a &lt;chain&gt;. And it renames the artifact extension when it resolves it.</p>
  
  <p>Here's my ivy.xml:</p>
  
  <pre><code>&lt;ivy-module version="2.0"&gt;
      &lt;info organisation="apache" module="hello-ivy"/&gt;
      &lt;dependencies&gt;
          &lt;dependency org="myorg" name="mymodule" rev="1.1-SNAPSHOT"/&gt;
      &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>And here's my ivysettings.xml:</p>
  
  <pre><code>&lt;ivysettings&gt;
    &lt;settings /&gt;
  
    &lt;resolvers&gt;
        &lt;filesystem name="local"&gt;
          &lt;artifact pattern="/path/to/my/artifact/[module]/dist/[module]-[revision].zip" /&gt;
        &lt;/filesystem&gt;
    &lt;/resolvers&gt;
  &lt;/ivysettings&gt;
  </code></pre>
  
  <p>My build.xml: </p>
  
  <pre><code>&lt;project xmlns:ivy="antlib:org.apache.ivy.ant" name="hello-ivy" default="deps"&gt;
  
    &lt;target name="deps" description="--&gt; retrieve dependencies with ivy"&gt;
      &lt;ivy:settings file="ivysettings.xml"/&gt;
      &lt;ivy:resolve /&gt;
      &lt;ivy:retrieve /&gt;
    &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>The artifact is a .zip file. It's in the right place and named correctly (in accordance with the &lt;artifact&gt;'s pattern attribute. But when I run ant, it fails to resolve the artifact:</p>
  
  <pre><code>[ivy:resolve] :::: WARNINGS
  [ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
  [ivy:resolve]       ::          UNRESOLVED DEPENDENCIES         ::
  [ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
  [ivy:resolve]       :: myorg#mymodule;1.1-SNAPSHOT: no resolver found for myorg#mymodule: check your configuration
  [ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
  [ivy:resolve] :::: ERRORS
  [ivy:resolve]   unknown resolver null
  [ivy:resolve]   no resolver found for myorg#mymodule: check your configuration
  </code></pre>
  
  <p>Why doesn't it find my module?</p>
  
  <p>Then: if I put the &lt;filesystem&gt; element inside a &lt;chain&gt; element, it resolves:</p>
  
  <pre><code>[ivy:resolve]   found myorg#mymodule;1.1-SNAPSHOT in local
  [ivy:resolve] downloading /path/to/my/artifact/mymodule/dist/mymodule-1.1-SNAPSHOT.zip 
  [ivy:resolve] ..................(lots of dots here).....(37899kB)
  [ivy:resolve]   [SUCCESSFUL ] myorg#mymodule;1.1-SNAPSHOT!mymodule.jar (430ms)
  </code></pre>
  
  <p>So that's strange. Why did the &lt;chain&gt; make a difference?
  And BTW, why is my module now a JAR??? The source is a ZIP file, I swear. It's the right one, too - I just rebuilt the ZIP, and the latest changes are in my JAR file. Why did Ivy rename it?</p>