title: Maven dependency with javadocs
body: <p>3 Questions:</p>
  
  <p>Below are two maven dependencies for JUnit. I have been scouring the interwebs for hours and cannot seem to determine if the second one is Javadoc + code or only Javadoc. Do I need one or both? Further, what is the most effecient way to include Javadocs in a project for development yet not in the production build? (I would prefer not to manually download javadocs for every dependency on every machine.)</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;junit&lt;/groupId&gt;
      &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;version&gt;4.11&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;junit&lt;/groupId&gt;
    &lt;artifactId&gt;junit&lt;/artifactId&gt;
    &lt;version&gt;4.11&lt;/version&gt;
    &lt;classifier&gt;javadoc&lt;/classifier&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>EDIT: Questions:</strong></p>
  
  <ul>
  <li>What is the difference between these dependencies?</li>
  <li>Do I need both of
  them to be able to use the dependency &amp; have Javadoc on hand?</li>
  <li>What is best practice for including Javadocs for development?</li>
  </ul>