title: JaCoCo with Maven - missing execution data file
body: <p>We have a Maven multi module project consisting of a parent (HelloWorld) and different children (HelloWorldServices and HelloWorldPresentation) and use Jenkins to build.</p>
  
  <p>The error after running the successful test is</p>
  
  <pre><code>[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:report (default-cli) @ HelloWorldServices ---
  [INFO] Skipping JaCoCo execution due to missing execution data file:/var/lib/jenkins/workspace/HelloWorld/HelloWorldServices/target/jacoco.exec
  </code></pre>
  
  <p>The lines before it says</p>
  
  <pre><code>[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:prepare-agent (default-cli) @ HelloWorldServices ---
  [INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.6.201602180812/org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=/var/lib/jenkins/workspace/HelloWorld/HelloWorldServices/target/jacoco.exec
  </code></pre>
  
  <p>This is how I defined the parent pom JaCoCo plugin:</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.6.201602180812&lt;/version&gt;
      &lt;configuration&gt;
          &lt;destfile&gt;${project.artifactId}/target/jacoco.exec&lt;/destfile&gt;
          &lt;datafile&gt;${project.artifactId}/target/jacoco.exec&lt;/datafile&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;package&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;
  </code></pre>
  
  <p>In no pom did I explicitly mention surefire. I also tried what you find everywhere to put the argLine in the configuration but all with the same result. The JaCoCo .exec file has never been created, no matter what I do. As for the goals, I use </p>
  
  <pre><code>mvn clean install jacoco:prepare-agent jacoco:report
  </code></pre>
  
  <p>Since when I omit the jacoco goals, it doesn't even display the INFO message.</p>