title: Ignore sources jar in Ivy retrieve
body: <p>I would like to retrieve ONLY the library jar when I make use of a dependency entry in my ivy.xml for Red5 (or any project for that matter). No matter how I have configured it, I still get "sources" jars for dependencies. I have scoured the docs and google and have yet to find a solution that works using Ivy 2.2.0. </p>
  
  <p>This set of nodes in my ivy.xml seems to work the best for most libraries, but Spring ignores them.</p>
  
  <pre><code>    &lt;exclude ext="txt" /&gt;
      &lt;exclude type="src" /&gt;
      &lt;exclude artifact="!sources" /&gt;
  </code></pre>
  
  <p>If anyone has any tips that would work, lets hear them!!</p>
  
  <p><strong>Links to the source xml files</strong></p>
  
  <p><a href="http://red5.googlecode.com/svn/java/server/trunk/ivy.xml" rel="nofollow noreferrer">http://red5.googlecode.com/svn/java/server/trunk/ivy.xml</a></p>
  
  <p><a href="http://red5.googlecode.com/svn/java/server/trunk/ivysettings.xml" rel="nofollow noreferrer">http://red5.googlecode.com/svn/java/server/trunk/ivysettings.xml</a></p>
  
  <p><a href="http://red5.googlecode.com/svn/java/server/trunk/build.xml" rel="nofollow noreferrer">http://red5.googlecode.com/svn/java/server/trunk/build.xml</a></p>
  
  <p><strong>Note</strong></p>
  
  <p>Don't say this is a duplicate, their answers do NOT work:</p>
  
  <p><a href="https://stackoverflow.com/questions/3654498/ivy-prevent-downloading-sources-and-txt-files">ivy: prevent downloading sources and .txt files</a></p>
  
  <p><a href="https://stackoverflow.com/questions/4355938/make-ivy-not-to-download-sources-and-license-files">make ivy not to download sources and license files</a></p>
  
  <p><strong>Update 1</strong></p>
  
  <pre><code>&lt;dependency org="org.springframework" name="org.springframework.core" rev="3.0.5.RELEASE" transitive="false" /&gt;</code></pre>
  
  <p>Produces these two files in my lib directory:</p>
  
  <pre><code>org.springframework.core-3.0.5.RELEASE.jar
  org.springframework.core-sources-3.0.5.RELEASE.jar</code></pre>
  
  <p><strong>Update 2</strong>
  For the bounty, I expect your solution to work with Red5 trunk which is available to everyone as open source. The sources jars are just a annoyance for me and well worth the bounty points.</p>