title: Maven Jacoco Configuration for multi-module projects
body: <p>I was trying to generate code coverage reports using jacoco plugin in maven for a multi module project that I was working on.</p>
  
  <p>I added the following in my parent pom.xml within the build tags.</p>
  
  <pre><code>      &lt;plugin&gt;
              &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
              &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.7.8-SNAPSHOT&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;output&gt;file&lt;/output&gt;
                  &lt;append&gt;true&lt;/append&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;jacoco-initialize&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;prepare-agent&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;jacoco-site&lt;/id&gt;
                      &lt;phase&gt;verify&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;report&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.18.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;argLine&gt;${argLine}&lt;/argLine&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>On running <strong>mvn verify</strong>, the respective jacoco reports were generated for each module at  <strong>"project-root\module\target\site\jacoco\"</strong></p>
  
  <p>Is it possible to generate a consolidated jacoco report at the project-root containing the test coverage details of each module?</p>
  
  <p>Please suggest the best possible way to merge the individual module reports.</p>