title: Getting "Skipping JaCoCo execution due to missing execution data file" upon executing JaCoCo
body: <p>I'm using Maven 3.0.3, JUnit 4.8.1, and Jacoco 0.6.3.201306030806, and I am trying to create test coverage reports.</p>
  
  <p>I have a project with unit tests only, but I can't get reports to run, I'm repeatedly getting the error: <code>Skipping JaCoCo execution due to missing execution data file</code> when I run:</p>
  
  <pre><code>mvn clean install -P test-coverage
  </code></pre>
  
  <p>Here is how my pom is configured:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.14.1&lt;/version&gt;
    &lt;configuration&gt;
      &lt;reuseForks&gt;true&lt;/reuseForks&gt;
      &lt;argLine&gt;-Xmx2048m&lt;/argLine&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.14.1&lt;/version&gt;
    &lt;configuration&gt;
      &lt;reuseForks&gt;true&lt;/reuseForks&gt;
      &lt;argLine&gt;-Xmx4096m -XX:MaxPermSize=512M ${itCoverageAgent}&lt;/argLine&gt;
    &lt;/configuration&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;goals&gt;
          &lt;goal&gt;integration-test&lt;/goal&gt;
          &lt;goal&gt;verify&lt;/goal&gt;
        &lt;/goals&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  ...
  &lt;profile&gt;
    &lt;id&gt;test-coverage&lt;/id&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.6.3.201306030806&lt;/version&gt;
          &lt;configuration&gt;
            &lt;destfile&gt;${basedir}/target/coverage-reports/jacoco-unit.exec&lt;/destfile&gt;
            &lt;datafile&gt;${basedir}/target/coverage-reports/jacoco-unit.exec&lt;/datafile&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;prepare-unit-tests&lt;/id&gt;
              &lt;goals&gt;
                &lt;goal&gt;prepare-agent&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
            &lt;!-- prepare agent for measuring integration tests --&gt;
            &lt;execution&gt;
              &lt;id&gt;prepare-integration-tests&lt;/id&gt;
              &lt;goals&gt;
                &lt;goal&gt;prepare-agent&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;pre-integration-test&lt;/phase&gt;
              &lt;configuration&gt;
                &lt;propertyName&gt;itCoverageAgent&lt;/propertyName&gt;
              &lt;/configuration&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;/plugins&gt;
    &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>All my tests run successfully. Here is some of the output from Maven:</p>
  
  <pre><code>[INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (prepare-unit-tests) @ myproject ---
  [INFO] argLine set to -javaagent:/Users/davea/.m2/repository/org/jacoco/org.jacoco.agent/0.6.2.201302030002/org.jacoco.agent-0.6.2.201302030002-runtime.jar=destfile=/Users/davea/Dropbox/workspace/myproject/target/jacoco.exec
  [INFO] 
      ...
  Tests run: 14, Failures: 0, Errors: 0, Skipped: 0
  
  [INFO]
      ...
  [INFO] 
  [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (prepare-integration-tests) @ myproject ---
  [INFO] itCoverageAgent set to -javaagent:/Users/davea/.m2/repository/org/jacoco/org.jacoco.agent/0.6.2.201302030002/org.jacoco.agent-0.6.2.201302030002-runtime.jar=destfile=/Users/davea/Dropbox/workspace/myproject/target/jacoco.exec 
  [INFO] 
  [INFO] --- maven-failsafe-plugin:2.14.1:integration-test (default) @ myproject ---
  [WARNING] File encoding has not been set, using platform encoding MacRoman, i.e. build is platform dependent!
  [INFO] 
  [INFO] --- maven-failsafe-plugin:2.14.1:verify (default) @ myproject ---
  [INFO] Failsafe report directory: /Users/davea/Dropbox/workspace/myproject/target/failsafe-reports
  [WARNING] File encoding has not been set, using platform encoding MacRoman, i.e. build is platform dependent!
  [INFO] 
  [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:report (jacoco-site) @ myproject ---
  [INFO] Skipping JaCoCo execution due to missing execution data file
  [INFO] 
  </code></pre>
  
  <p>Any ideas what configuration I'm missing?</p>