title: jacoco:report-aggregate either gets shallow coverage or none at all
body: <p>I have a large multi-module Maven build, presently with a mix of PowerMock and Mockito tests (moving all PowerMock tests to Mockito soon).  The default jacoco-maven-plugin config in the parent pom is for "offline" instrumentation, but the one module with Mockito tests is using online instrumentation.  I believe each of the jacoco.exec files in the modules are being built correctly.</p>
  
  <p>One of the child modules, called "jacoco-aggregate", just tries to use the "merge" and "report-aggregate" goals.  I'm using "merge" because I'm integrating with SonarQube, and the version we're using will only allow a single exec file.  From the output I can see, the "merge" goal seems to be working correctly.</p>
  
  <p>The "report-aggregate" goal seems to have a problem.  It's presently generating no coverage at all.  The table that is displayed is empty.</p>
  
  <p>The following is the current output I get when building in the jacoco child module itself:</p>
  
  <pre><code>[INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jacoco-aggregate ---
  [INFO] Deleting &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\target
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (filter) @ jacoco-aggregate ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\src\main\resources
  [INFO] 
  [INFO] --- depends-maven-plugin:1.2:generate-depends-file (generate-depends-file) @ jacoco-aggregate ---
  [INFO] Created: &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\target\classes\META-INF\maven\dependencies.properties
  [INFO] 
  [INFO] --- jacoco-maven-plugin:0.7.8:report (default-report) @ jacoco-aggregate ---
  [INFO] Skipping JaCoCo execution due to missing execution data file.
  [INFO] 
  [INFO] --- maven-javadoc-plugin:2.10.4:jar (module-javadoc-jar) @ jacoco-aggregate ---
  [INFO] Not executing Javadoc as the project is not a Java classpath-capable package
  [INFO] 
  [INFO] --- jacoco-maven-plugin:0.7.8:report-aggregate (report-aggregate) @ jacoco-aggregate ---
  [INFO] 
  [INFO] --- jacoco-maven-plugin:0.7.8:merge (merge) @ jacoco-aggregate ---
  [INFO] Loading execution data file &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\..\usl-account-impl\target\jacoco.exec
  [INFO] Loading execution data file &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\..\usl-core-impl\target\jacoco.exec
  [INFO] Loading execution data file &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\..\usl-creditcheck-impl\target\jacoco.exec
  [INFO] Loading execution data file &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\..\usl-ordercreation-impl\target\jacoco.exec
  [INFO] Loading execution data file &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\..\usl-payment-impl\target\jacoco.exec
  [INFO] Loading execution data file &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\..\usl-productandoffer-impl\target\jacoco.exec
  [INFO] Writing merged execution data to &lt;myhome&gt;\git\oce_usl\usl-parent\jacoco-aggregate\target\jacoco.exec
  [INFO] 
  </code></pre>
  
  <p>The following is an excerpt from the "jacoco-aggregate" pom:</p>
  
  <pre><code>&lt;artifactId&gt;jacoco-aggregate&lt;/artifactId&gt;
  &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;jacoco-aggregate&lt;/name&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;dependencies&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-account-impl&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-core-impl&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-creditcheck-impl&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-csi-jaxb-base&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-ordercreation-impl&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-payment-impl&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-productandoffer-impl&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
         &lt;artifactId&gt;usl-servicefactory-impl&lt;/artifactId&gt;
         &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
         &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
      &lt;groupId&gt;com.att.detsusl&lt;/groupId&gt;
      &lt;artifactId&gt;usl-csi-icas-impl&lt;/artifactId&gt;
      &lt;version&gt;2.3.0-SNAPSHOT&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
     &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;plugins&gt;
          &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&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;report-aggregate&lt;/id&gt;
                      &lt;phase&gt;verify&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;report-aggregate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                     &lt;id&gt;merge&lt;/id&gt;
                     &lt;phase&gt;verify&lt;/phase&gt;
                     &lt;goals&gt;
                         &lt;goal&gt;merge&lt;/goal&gt;
                     &lt;/goals&gt;
                     &lt;configuration&gt;
                         &lt;fileSets&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-account-impl/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-core-impl/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-creditcheck-impl/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-csi-jaxb-base/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-ordercreation-impl/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-payment-impl/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-productandoffer-impl/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                             &lt;fileSet&gt;
                                 &lt;directory&gt;${project.basedir}/../usl-servicefactory-impl/target&lt;/directory&gt;
                                 &lt;includes&gt;
                                  &lt;include&gt;*.exec&lt;/include&gt;
                                 &lt;/includes&gt;
                             &lt;/fileSet&gt;
                         &lt;/fileSets&gt;
                     &lt;/configuration&gt;
                  &lt;/execution&gt;
                &lt;execution&gt;
                    &lt;id&gt;prepare-agent&lt;/id&gt;
                    &lt;phase&gt;none&lt;/phase&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;prepare-agent&lt;/goal&gt;
                    &lt;/goals&gt;
                &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;default-instrument&lt;/id&gt;
                      &lt;phase&gt;none&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;instrument&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;default-restore-instrumented-classes&lt;/id&gt;
                      &lt;phase&gt;none&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;restore-instrumented-classes&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                     &lt;id&gt;report&lt;/id&gt;
                    &lt;phase&gt;none&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;/plugins&gt;
  </code></pre>
  
  <p>Note that I'm specifying executions for other jacoco goals because those are specified in the parent pom, which are expected to be used by ordinary code modules.  Setting the "phase" to "none" is a way to effectively disable that goal (not that it's particularly clean).</p>
  
  <p>Before I run the build manually in "jacoco-aggregate", I've looked at the several "jacoco.exec" files being referenced in the other modules, and they all exist and are non-empty.</p>