title: Lombok Maven javadoc:aggregate report with generated sources
body: <p>I have a multimodule java project built with Maven to which I want to generate javadocs with <code>javadoc:aggregate</code>. The project structure looks like:</p>
  
  <pre><code>parent
  ├─lomboklib
  └─other
  </code></pre>
  
  <p>I am also using <a href="http://projectlombok.org/" rel="nofollow noreferrer">Project Lombok</a> to generate some methods in the project. I have successfully configured it to work with single modules by first running <a href="http://projectlombok.org/features/delombok.html" rel="nofollow noreferrer">delombok</a> with the <a href="https://github.com/awhitford/lombok.maven" rel="nofollow noreferrer">Lombok maven plugin</a>. For single modules (lomboklib), this will generate source code in</p>
  
  <pre><code>target/generated-sources/delombok
  </code></pre>
  
  <p>which is then processed by <strong>maven-javadoc-plugin</strong> and the <strong>javadoc</strong> tool. This was originally solved in <a href="https://stackoverflow.com/a/11930955/1119345">This SO question</a>.</p>
  
  <p>How can I configure the <code>javadoc:aggregate</code> report to also use the generated sources?</p>
  
  <p>I've put up a sandbox of the problem with all the module definitions in <a href="https://github.com/vaisala-oss/lombok-maven-multimodule" rel="nofollow noreferrer">Github</a>. Ideally, I should be able to run</p>
  
  <pre><code>mvn clean compile javadoc:aggregate
  </code></pre>
  
  <p>In the parent project, and have the whole thing compile and get javadocs for the entire project.</p>