title: Ivy: Retrieving Snapshot published in Nexus and its dependencies
body: <p>I am using Ivy to publish a snapshot of a built Jar to a locally hosted Nexus repository using the following Ant target.</p>
  
  <pre><code>&lt;target name="publish"&gt;
      &lt;ivy:publish resolver="nexus_snapshot" pubrevision="SNAPSHOT" overwrite="true"&gt;
          &lt;artifacts pattern="${dist.dir}/[artifact].[ext]" /&gt;
      &lt;/ivy:publish&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>This appears to work fine, resulting in the Jar and its associated ivy.xml being present in the repository (with filenames mymodule-SNAPSHOT.jar and ivy-SNAPSHOT.jar).</p>
  
  <p>Later, in another build script, I wish to retrieve the Jar and its associated dependencies (i.e. as specified in its ivy.xml) into a directory.</p>
  
  <p>This is the Ant target I'm using.</p>
  
  <pre><code>&lt;target name="deploy"&gt;
      &lt;delete dir="deploy" /&gt;
      &lt;mkdir dir="deploy" /&gt;
      &lt;ivy:settings file="${ivy.dir}/ivy_deploy_settings.xml" /&gt;
      &lt;ivy:retrieve organisation="myorg" module="mymodule" 
         inline="true" revision="SNAPSHOT" pattern="deploy/[artifact].[ext]"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>This retrieves the Jar to the directory, but not its dependencies. Also, if I add</p>
  
  <pre><code>conf="impl"
  </code></pre>
  
  <p>to the retrieve, it fails as the configuration is not found.</p>
  
  <p>As such, it seems that the retrieve is simply not referencing the ivy.xml and hence not resolving the dependencies.</p>
  
  <p>Should this work or am I misunderstanding something?</p>