title: Ivy won't publish to my local repo
body: <p>From my <code>build.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;project name="myapp" default="package-core" basedir=".."
          xmlns:ivy="antlib:org.apache.ivy.ant"
          xmlns:antcontrib="antlib:net.sf.antcontrib"&gt;
      &lt;target name="bootstrap"&gt;
          &lt;taskdef resource="org/apache/ivy/ant/antlib.xml"
                  uri="antlib:org.apache.ivy.ant" classpathref="build.path"/&gt;
          &lt;/target&gt;
  
      &lt;target name="resolve" depends="bootstrap"&gt;
          &lt;ivy:settings url="${ivy.settings.home}"/&gt;
          &lt;ivy:cleancache/&gt;
          &lt;ivy:resolve file="build/${ivy.xml}"/&gt;
          &lt;ivy:retrieve pattern="${gen.lib.main.dir}/[artifact]-[revision].[ext]" conf="main"/&gt;
          &lt;ivy:report todir="${gen.staging.dir}" /&gt;
      &lt;/target&gt;
  
      ...omitted for brevity
  
      &lt;target name="publish" depends="compile"&gt;
          &lt;ivy:publish resolver="default-resolver" pubrevision="0.2.0" overwrite="true" update="true"&gt;   
              &lt;artifacts pattern="${gen.dist.pub.dir}/[artifact].[ext]" /&gt;   
          &lt;/ivy:publish&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>My <code>ivy.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&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="myapp" module="myapp"/&gt;
      &lt;configurations&gt;
          &lt;conf name="main" description="provides main dependencies for the client JAR"/&gt;
      &lt;/configurations&gt;
      &lt;dependencies&gt;
          &lt;!-- Main dependencies. --&gt;
          &lt;dependency org="google" name="guava" rev="14.0" conf="main-&gt;*"/&gt;
          &lt;dependency org="google" name="guice" rev="3.0" conf="main-&gt;*"/&gt;
      &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>My <code>ivy-settings.xml</code>:</p>
  
  <pre><code>&lt;ivysettings&gt;  
      &lt;properties file="ivy-settings.properties"/&gt;
      &lt;settings defaultResolver="default-resolver"/&gt;
      &lt;latest-strategies&gt;
          &lt;latest-lexico/&gt;
      &lt;/latest-strategies&gt;
      &lt;credentials host="${ivy.repo.root}" realm="${ivy.std.repo.realm}"
              username="${ivy.std.repo.username}" password="${ivy.std.repo.password}"/&gt;
      &lt;resolvers&gt;  
          &lt;chain name="default-resolver" returnFirst="true"&gt;
              &lt;url name="std-repo"&gt;
                  &lt;ivy pattern="${ivy.repo.root}/${ivy.module.pattern}"/&gt;
                  &lt;artifact pattern="${ivy.repo.root}/${ivy.artifact.pattern}"/&gt;
              &lt;/url&gt;
          &lt;/chain&gt;
      &lt;/resolvers&gt;  
      &lt;modules&gt;
          &lt;module organisation="myapp" name="*" resolver="default-resolver"/&gt;
      &lt;/modules&gt;
  &lt;/ivysettings&gt;
  </code></pre>
  
  <h3>Question:</h3>
  
  <p>When I run the <code>resolve</code> target, I successfully pull down the Guava and Guice JARs (and all their dependencies). So I know I have this set up, at least <em>partially</em> correct.</p>
  
  <p>But when I run the <code>publish</code> target, I get the following error:</p>
  
  <pre><code>[jar] Building jar: /home/myuser/sandbox/dsi/workbench/eclipse/workspace/myapp/gen/dist/myapp-server
  publish:
  [ivy:publish] :: loading settings :: url = jar:file:/home/myuser/sandbox/dsi/workbench/eclipse/4.2/eclipse/plugins/org.apache.ivy.eclipse.ant_2.3.0.final_20130110142753/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
  
  BUILD FAILED
  /home/myuser/sandbox/dsi/workbench/eclipse/workspace/myapp/build/build-core.xml:289: no organisation provided for ivy publish task: It can either be set explicitely via the attribute 'organisation' or via 'ivy.organisation' property or a prior call to &lt;resolve/&gt;
  </code></pre>
  
  <p>Any ideas? Thanks in advance!</p>