title: jacoco prepare-agent not generating jacoco.exec files
body: <p>Exes files are not generated. My profile for mvn sonar:sonar -Psonar-coverage
  I also read this thread. didn't help me
  <a href="https://stackoverflow.com/questions/21633277/jacocos-prepare-agent-not-generating-jacoco-exec-file">jacoco&#39;s prepare-agent not generating jacoco.exec file</a></p>
  <pre><code> &lt;profile&gt;
        &lt;id&gt;sonar-coverage&lt;/id&gt;
        &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
            &lt;id&gt;central&lt;/id&gt;
            &lt;url&gt;http://nexus-url.ru/nexus/content/repositories/central/&lt;/url&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
            &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
        &lt;/pluginRepositories&gt;
        &lt;activation&gt;
          &lt;activeByDefault&gt;false&lt;/activeByDefault&gt;
        &lt;/activation&gt;
        &lt;build&gt;
          &lt;pluginManagement&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;${jacoco.version}&lt;/version&gt;
              &lt;/plugin&gt;
            &lt;/plugins&gt;
          &lt;/pluginManagement&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;executions&gt;
                &lt;execution&gt;
                  &lt;id&gt;pre-unit-test&lt;/id&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;prepare-agent&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                    &lt;destFile&gt;${basedir}/target/coverage-reports/jacoco-ut.exec&lt;/destFile&gt;
                  &lt;/configuration&gt;
                &lt;/execution&gt;
                &lt;execution&gt;
                  &lt;id&gt;post-unit-test&lt;/id&gt;
                  &lt;phase&gt;test&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;report&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                    &lt;dataFile&gt;${basedir}/target/coverage-reports/jacoco-ut.exec&lt;/dataFile&gt;
                    &lt;outputDirectory&gt;${basedir}/target/jacoco-ut-report&lt;/outputDirectory&gt;
                  &lt;/configuration&gt;
                &lt;/execution&gt;
                &lt;execution&gt;
                  &lt;id&gt;pre-integration-test&lt;/id&gt;
                  &lt;phase&gt;package&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;prepare-agent-integration&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                    &lt;destFile&gt;${basedir}/target/coverage-reports/jacoco-it.exec&lt;/destFile&gt;
                    &lt;propertyName&gt;integrationTestArgLine&lt;/propertyName&gt;
                  &lt;/configuration&gt;
                &lt;/execution&gt;
                &lt;execution&gt;
                  &lt;id&gt;post-integration-test&lt;/id&gt;
                  &lt;phase&gt;verify&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;report-integration&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                    &lt;dataFile&gt;${basedir}/target/coverage-reports/jacoco-it.exec&lt;/dataFile&gt;
                    &lt;outputDirectory&gt;${basedir}/target/jacoco-it-report&lt;/outputDirectory&gt;
                  &lt;/configuration&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
            &lt;/plugin&gt;
          &lt;/plugins&gt;
        &lt;/build&gt;
      &lt;/profile&gt;
  </code></pre>
  <p>In logs: &quot;Skipping JaCoCo execution due to missing execution data file.&quot;
  My build:</p>
  <p>mvn clean install -Psonar-coverage</p>
  <p>but, in logs:</p>
  <pre><code> [INFO] --- jacoco-maven-plugin:0.8.0:prepare-agent (pre-unit-test) @ pos-parent ---
   [INFO] argLine set to -javaagent:/pos/.m2/org/jacoco/org.jacoco.agent/0.8.0/org.jacoco.agent-0.8.0-runtime.jar=destfile=/pos/pos/target/coverage-reports/jacoco-ut.exec
   [INFO] 
   [INFO] &lt;&lt;&lt; maven-source-plugin:2.1.2:jar (attach-sources) &lt; generate-sources @ pos-parent &lt;&lt;&lt;
   [INFO] 
   [INFO] 
   [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ pos-parent ---
   [INFO] 
   [INFO] --- jacoco-maven-plugin:0.8.0:prepare-agent-integration (pre-integration-test) @ pos-parent ---
   [INFO] integrationTestArgLine set to -javaagent:/pos/.m2/org/jacoco/org.jacoco.agent/0.8.0/org.jacoco.agent-0.8.0-runtime.jar=destfile=/pos/pos/target/coverage-reports/jacoco-it.exec
   [INFO] 
   [INFO] --- maven-scm-validator-plugin:1.0.2:validate (default) @ pos-parent ---
   [WARNING] Project's dir probably isn't local copy of SVN repository. SCM settings validation will be skipped.
   [INFO] 
   [INFO] --- maven-dependency-conflicts-plugin:1.0:analyze (default) @ pos-parent ---
   [INFO] 
   [INFO] --- jacoco-maven-plugin:0.8.0:report-integration (post-integration-test) @ pos-parent ---
   [INFO] Skipping JaCoCo execution due to missing execution data file.
  </code></pre>
  <p>what's my mistake? please help</p>