title: Error installing module into enterprise Ivy repository
body: <p>Ok, I've been searching for some time and am getting nowhere.  I'm fairly new to ivy and and trying to set up a repository that is housed on our internal servers. I have been playing with ivy namespaces as described in the Building a Repository tutorial on the Ivy site.</p>
  
  <p>Tutorial here:
  <a href="http://ant.apache.org/ivy/history/trunk/tutorial/build-repository.html" rel="nofollow">http://ant.apache.org/ivy/history/trunk/tutorial/build-repository.html</a></p>
  
  <p>Source here:
  <a href="https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/example/build-a-ivy-repository/" rel="nofollow">https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/example/build-a-ivy-repository/</a></p>
  
  <p>Specifically, I'm working with the "maven2-namespace-deps" target defined in the build.xml.  The problem lies in an error I'm getting that looks like:</p>
  
  <blockquote>
    <p>bad organisation found in blah/blah/blah/apache-4.pom: expected='org.apache' found='apache'</p>
  </blockquote>
  
  <p>This occurs with the tutorial "out of the box".  So I tried to simplify things a bit and see where I could get.  I altered the rules in advanced-settings to only contain:</p>
  
  <pre><code>&lt;rule&gt;
      &lt;fromsystem&gt;
          &lt;src org="apache" module="ant-.+"/&gt;
          &lt;dest org="org.apache.ant" module="$m0"/&gt;
      &lt;/fromsystem&gt;
      &lt;tosystem&gt;
          &lt;src org="org.apache.ant" module="ant-.+"/&gt;
          &lt;dest org="apache" module="$m0"/&gt;
      &lt;/tosystem&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>Then I altered the install line in the build xml to install just ant-junit and dependencies like so:</p>
  
  <pre><code>&lt;ivy:install settingsRef="ivy.settings" organisation="org.apache.ant" module="ant-junit" revision="1.9.4" from="libraries" to="my-repository" transitive="true" /&gt;
  </code></pre>
  
  <p>Lo and behold...a very similar error on a different project: </p>
  
  <blockquote>
    <p>libraries: bad organisation found in blah/blah/blah/ant-parent/1.9.4/ant-parent-1.9.4.pom: expected='org.apache.ant' found='apache'</p>
  </blockquote>
  
  <p>Searches on Google and stackoverflow were both fruitless. This may be a red herring, however I noticed that both of the projects that had this issued have:</p>
  
  <pre><code>&lt;packaging&gt;pom&lt;/packaging&gt;
  </code></pre>
  
  <p>in their pom files, rather than "jar" or nothing (jar is the maven default packaging).  So, I'm a bit suspicious about that.</p>
  
  <p>Has anyone run into this issue? Suggestions? Thoughts? Random eloquent ramblings?</p>