title: Skipping JaCoCo execution due to missing execution data file
body: <p>did everything right but still getting missing data file error
      
          ${project.build.directory}/coverage-reports/jacoco-it.exec
      </p>
  
  <pre><code>&lt;build&gt;
      &lt;finalName&gt;maven-integration-testing&lt;/finalName&gt;
  
      &lt;plugins&gt;
          &lt;!-- Used to add source directories to our build. --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.7&lt;/version&gt;
              &lt;executions&gt;
                  &lt;!-- States that the plugin's add-test-source goal is executed at generate-test-sources 
                      phase. --&gt;
                  &lt;execution&gt;
                      &lt;id&gt;add-integration-test-sources&lt;/id&gt;
                      &lt;phase&gt;generate-test-sources&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;add-test-source&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;!-- Configures the source directory of integration tests. --&gt;
                          &lt;sources&gt;
                              &lt;source&gt;src/integration-test/java&lt;/source&gt;
                          &lt;/sources&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&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.5.201505241946&lt;/version&gt;
              &lt;executions&gt;
  
  
                  &lt;execution&gt;
                      &lt;id&gt;pre-integration-test&lt;/id&gt;
                      &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;prepare-agent&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;!-- Sets the path to the file which contains the execution data. --&gt;
                          &lt;destFile&gt;${jacoco.it.execution.data.file}&lt;/destFile&gt;
                          &lt;!-- Sets the name of the property containing the settings for JaCoCo 
                              runtime agent. --&gt;
                          &lt;propertyName&gt;failsafeArgLine&lt;/propertyName&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
  
                  &lt;execution&gt;
                      &lt;id&gt;post-integration-test&lt;/id&gt;
                      &lt;phase&gt;post-integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;report&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;!-- Sets the path to the file which contains the execution data. --&gt;
                          &lt;dataFile&gt;${jacoco.it.execution.data.file}&lt;/dataFile&gt;
                          &lt;!-- Sets the output directory for the code coverage report. --&gt;
                          &lt;outputDirectory&gt;${project.reporting.outputDirectory}/jacoco-it&lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
          &lt;!-- Used for integration tests --&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.15&lt;/version&gt;
              &lt;executions&gt;
                  &lt;!-- Ensures that both integration-test and verify goals of the Failsafe 
                      Maven plugin are executed. --&gt;
                  &lt;execution&gt;
                      &lt;id&gt;integration-tests&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;integration-test&lt;/goal&gt;
                          &lt;goal&gt;verify&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;!-- Sets the VM argument line used when integration tests are run. --&gt;
                          &lt;!-- &lt;argLine&gt;${failsafeArgLine}&lt;/argLine&gt; --&gt;
                          &lt;argLine&gt;${argLine} -Xmx4096m -XX:MaxPermSize=512M ${failsafeArgLine}&lt;/argLine&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>prepare-agent : it is not creating the data file , i have spring mvc application which has services and i have written the test cases for that and trying to get the code coverage for this</p>