title: Issues using ivy:publish task
body: <p>I'm trying to use <strong>ivy:publish</strong> to publish a jar that I've built to the .ivy repository, but I'm getting an error. I'm pretty sure I'm not using it correctly, so I was hoping someone could point me in the right direction. </p>
  
  <p>The project structure is something like this:</p>
  
  <pre><code>root--|
        |--src
        |--build
        |      |
        |      |--someorganisation-commonlib-1.0.0.jar
        |
        |--ivy.xml
        |--build.xml
  </code></pre>
  
  <p>The build.xml looks something like this:</p>
  
  <pre><code>&lt;target name="publish"&gt; 
          &lt;ivy-publish organisation="someorganisation" resolver="local" module="commonlib" revision="1.0.0"&gt;
                 &lt;artifacts pattern="build/[organisation]-[module](-[revision])(-[type]).[ext]" /&gt;
          &lt;/ivy-publish&gt;  
      &lt;/target&gt;
  </code></pre>
  
  <p>ivy.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
      &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="someorganisation"
              module="commonlib"
              status="integration"&gt;
          &lt;/info&gt;
  
      &lt;dependencies&gt;  
              &lt;dependency org="com.thoughtworks.xstream" name="xstream" rev="1.3.1" transitive="false"/&gt;
              &lt;dependency org="org.slf4j" name="slf4j-api" rev="1.6.1" transitive="false"/&gt;
              &lt;dependency org="org.slf4j" name="slf4j-jdk14" rev="1.6.1" transitive="false"/&gt;
              &lt;dependency org="joda-time" name="joda-time" rev="1.6.2" transitive="false"/&gt;
          &lt;/dependencies&gt;
  
      &lt;/ivy-module&gt;
  </code></pre>
  
  <p>When I run the build.xml, I get the following error:</p>
  
  <pre><code> C:\workspaces\wkspc\someproject\build.xml:8: someorganization#commonlib;1.0.0: java.lang.IllegalStateException: ivy file not found in cache for someorganization#commonlib;1.0.0: please resolve dependencies before delivering (C:\Documents and Settings\someuser\.ivy2\cache\resolved-someorganization-commonlib-1.0.0.xml)
  </code></pre>