title: How to download sources for a jar with Maven?
body: <p>In my project I am using a JAR file provided via Maven. But what Maven gives me is only this jar - no javadocs and no sources. Pressing "Download Sources" has no effect: Eclipse still does not find the sources of the jar.</p>
  
  <p>What this depends on? Should repository provide sources automatically?</p>
  
  <p>May be I need to write something in POM to instruct Maven to download sources?</p>
  
  <p>My current pom follows:</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;xuggle repo&lt;/id&gt;
          &lt;url&gt;http://xuggle.googlecode.com/svn/trunk/repo/share/java/&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;xuggle&lt;/groupId&gt;
          &lt;artifactId&gt;xuggle-xuggler&lt;/artifactId&gt;
          &lt;version&gt;5.3&lt;/version&gt;
          &lt;type&gt;rar&lt;/type&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Why Maven does not say any comments on it's sources download fail?</p>