title: What configuration does ivy need to stop dropping version numbers
body: <p>I've been going nuts over this for a good few hours and I cannot find any resources regarding how to specify the patterns for the published jars (these are being published to my local repository.</p>
  
  <p>I have a file called <strong>peacock-lib-1.0.jar</strong> in a build directory created by another ant task.  When running the <strong>publish</strong> ant task ivy finds the file and copies it into the local directory where I expect to find it.  However, the destination file ends up being renamed <strong>peacock-lib.jar</strong>.</p>
  
  <p>It's obviously just missing bit of configuration but I just can't find out what.</p>
  
  <p>This is my ivy.xml:</p>
  
  <pre><code>&lt;ivy-module version="2.0"&gt;
    &lt;info organisation="myorg" module="peacock-lib" /&gt;
  
    &lt;publications&gt;
      &lt;artifact name="peacock-lib" type="jar"/&gt;
    &lt;/publications&gt;
  
    &lt;dependencies&gt;
  ...
    &lt;/dependencies&gt;
  
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>and my ant task:</p>
  
  <pre><code>  &lt;target name="publish-local" description="--&gt; Publish Local"&gt;
      &lt;property name="ivy.organisation" value="myorg" /&gt;
      &lt;property name="ivy.module" value="peacock-lib" /&gt;
      &lt;property name="ivy.revision" value="${peacockLibVer}" /&gt;
      &lt;ivy:publish resolver="local" pubrevision="${peacockLibVer}" status="release" update="true" overwrite="true"&gt;
        &lt;artifacts pattern="dist/lib/[module]-[revision].[ext]" /&gt;
      &lt;/ivy:publish&gt;
    &lt;/target&gt;
  </code></pre>
  
  <p>any help will be greatly appreciated.</p>
  
  <p>regards</p>
  
  <p>fern</p>