title: Ivy appears to fetch javadoc jars only
body: <p>I'm using Ivy on my project, with the Ivy Eclipse plugin.</p>
  
  <p>It appears that certain jars which are downloaded and added to my project are the javadoc jars, not the jars with the actual code.  Note - this doesn't happen with all jars.  </p>
  
  <p>For example, adding this to my ivy.xml file:</p>
  
  <pre><code>&lt;dependency org="junit" name="junit" rev="4.8.2"/&gt;
  </code></pre>
  
  <p>caused the javadocs for junit to be downloaded and added to my classpath:
  <img src="https://i.stack.imgur.com/pjYho.jpg" alt="enter image description here"></p>
  
  <p>This breaks compilation for my project, as none of the unit tests are working.</p>
  
  <p>This was working fine until I added a reference to Spring, and everything broke.  I've tried removing the reference, and deleting junit from my local cache to force ivy to fetch it again, but the problem persists.</p>
  
  <p>Here's my total dependency block (with spring removed):</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency org="org.hamcrest" name="hamcrest-library" rev="1.3.RC2"/&gt;
      &lt;dependency org="junit" name="junit" rev="4.8.2"/&gt;
      &lt;dependency org="org.mockito" name="mockito-core" rev="1.8.5"/&gt;
      &lt;dependency org="javax.persistence" name="persistence-api" rev="1.0"/&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Here's my <code>ivysettings.xml</code> for the project:</p>
  
  <pre><code>&lt;ivysettings&gt;
  
      &lt;caches artifactPattern="[organisation]/[module]/[revision]/[artifact].[ext]" /&gt;
      &lt;settings defaultResolver="local.ibiblio.jboss.java-net.springsource" checkUpToDate="true" /&gt;
  
      &lt;resolvers&gt;
          &lt;chain name="local.ibiblio.jboss.java-net.springsource"&gt;
              &lt;filesystem name="libraries"&gt;
                  &lt;artifact pattern="${basedir}/ivy-repo/[artifact]-[revision].[type]" /&gt;
              &lt;/filesystem&gt;
              &lt;ibiblio name="ibiblio" m2compatible="true" /&gt;
              &lt;ibiblio name="jboss" m2compatible="true"
                  root="https://repository.jboss.org/nexus/content/groups/public-jboss" /&gt;
              &lt;ibiblio name="java.net" m2compatible="true"
                  root="https://repository.jboss.org/nexus/content/repositories/java.net-m2/" /&gt;
              &lt;ibiblio name="java.net" m2compatible="true"
                  root="http://repository.codehaus.org/" /&gt;
              &lt;url name="com.springsource.repository.libraries.release"&gt;
                  &lt;ivy pattern="http://repository.springsource.com/ivy/libraries/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
                  &lt;artifact pattern="http://repository.springsource.com/ivy/libraries/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
              &lt;/url&gt;
  
              &lt;url name="com.springsource.repository.libraries.external"&gt;
                  &lt;ivy pattern="http://repository.springsource.com/ivy/libraries/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
                  &lt;artifact pattern="http://repository.springsource.com/ivy/libraries/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
              &lt;/url&gt;
              &lt;url name="com.springsource.repository.bundles.release"&gt;
                  &lt;ivy pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
                  &lt;artifact pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
              &lt;/url&gt;
  
              &lt;url name="com.springsource.repository.bundles.external"&gt;
                  &lt;ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
                  &lt;artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /&gt;
              &lt;/url&gt;
          &lt;/chain&gt;
  
      &lt;/resolvers&gt;
  &lt;/ivysettings&gt;
  </code></pre>