title: Maven 3: Generate Javadoc for defined artifacts
body: <p>I want to generate javadocs only for certain artifacts of my project from within a dedicated docs-project.</p>
  
  <p>That means that I would like to have an independent project called "docs" for example. In the docs/pom.xml I would like to define the artifacts that should be included in the generated javadocs.</p>
  
  <p>So far I learned that I have to generate a separate sources.jar for the projects I want to include. But I can't figure out how to go on from there.</p>
  
  <p>For now I can only imagine two approaches:</p>
  
  <ol>
  <li><p>Get the artifacts (sources.jar) I want to include, unpack them and somehow point the Javadoc plugin to the source directory.</p></li>
  <li><p>Define the artifacts I am interested as dependency and use the "dependencySourceInclude" option of the javadoc-plugin. But I am not sure if this is usage as intended.</p></li>
  </ol>
  
  <p>Any suggestions how to solve this problem?</p>