title: How to generate Javadoc for Maven Dependencies
body: <p>I have a maven project with the following POM snippet:</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;artifactId&gt;Foo-Deploy&lt;/artifactId&gt;
  &lt;name&gt;Foo-Deploy&lt;/name&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;description&gt;foobar&lt;/description&gt;
  &lt;dependencies&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;de.foo.bar&lt;/groupId&gt;
          &lt;artifactId&gt;some-api&lt;/artifactId&gt;
          &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;classifier&gt;doc&lt;/classifier&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>The idea is to have a dependency defined in which some sources are (this is created successfully before). 
  Now I want to run javadoc on exactly THIS dependency. When I call</p>
  
  <pre><code>mvn javadoc:jar -DincludeDependencySources=true -DdependencySourceIncludes=de.foo.bar:some-api:*:doc:zip
  </code></pre>
  
  <p>it fails with the message </p>
  
  <blockquote>
    <p>Not executing Javadoc as the project
    is not a Java classpath-capable
    package</p>
  </blockquote>
  
  <p>what is wrong ? and would it work anyhow ? </p>
  
  <p>or how can I generate javadoc from a specific dependency (assuming this project has more dependencies) ?</p>
  
  <p>Thanks</p>