Jacoco code coverage - war file running in cargo
<p>I asked this question before but never got an answer, I assume from the blog posts I have read this is possible but I cannot get it to work.</p>

<p>I want to run integration tests using selenium in my maven build, I am using the cargo plugin to deploy my war file to tomcat and the integration tests are with selenium. I am passing the jacoco arg line parameter to cargo on start up but cannot get the coverage results.</p>

<p>All my tests run but whenever I look at the generated jacoco report for integration tests there is always zero coverage.</p>

<p>I am posting my entire pom file as it is quite small and this might mean I get some help to get this working.</p>

<pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0        http://maven.apache.org/maven-v4_0_0.xsd"&gt;
&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&lt;groupId&gt;uk.co&lt;/groupId&gt;
&lt;artifactId&gt;netart&lt;/artifactId&gt;
&lt;name&gt;MockitoTests&lt;/name&gt;
&lt;packaging&gt;war&lt;/packaging&gt;
&lt;version&gt;1.0.0-BUILD-SNAPSHOT&lt;/version&gt;
&lt;properties&gt;
    &lt;java-version&gt;1.6&lt;/java-version&gt;
    &lt;org.springframework-version&gt;3.2.7.RELEASE&lt;/org.springframework-version&gt;
    &lt;org.aspectj-version&gt;1.6.10&lt;/org.aspectj-version&gt;
    &lt;org.slf4j-version&gt;1.6.6&lt;/org.slf4j-version&gt;                      
&lt;/properties&gt;

&lt;dependencies&gt;
    &lt;!-- Spring --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework&lt;/groupId&gt;
        &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
        &lt;version&gt;${org.springframework-version}&lt;/version&gt;
        &lt;exclusions&gt;
            &lt;!-- Exclude Commons Logging in favor of SLF4j --&gt;
            &lt;exclusion&gt;
                &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
            &lt;/exclusion&gt;
        &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework&lt;/groupId&gt;
        &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
        &lt;version&gt;${org.springframework-version}&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework&lt;/groupId&gt;
        &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
        &lt;version&gt;${org.springframework-version}&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;dependency&gt;
        &lt;groupId&gt;org.mockito&lt;/groupId&gt;
        &lt;artifactId&gt;mockito-core&lt;/artifactId&gt;
        &lt;version&gt;1.9.5&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework&lt;/groupId&gt;
        &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
        &lt;version&gt;${org.springframework-version}&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
        &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
        &lt;version&gt;[2.3.0,2.3.99]&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
        &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
        &lt;version&gt;[2.3.0,2.3.99]&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;!-- AspectJ --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
        &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
        &lt;version&gt;${org.aspectj-version}&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;!-- Logging --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
        &lt;version&gt;${org.slf4j-version}&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
        &lt;version&gt;${org.slf4j-version}&lt;/version&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
        &lt;version&gt;${org.slf4j-version}&lt;/version&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;log4j&lt;/groupId&gt;
        &lt;artifactId&gt;log4j&lt;/artifactId&gt;
        &lt;version&gt;1.2.15&lt;/version&gt;
        &lt;exclusions&gt;
            &lt;exclusion&gt;
                &lt;groupId&gt;javax.mail&lt;/groupId&gt;
                &lt;artifactId&gt;mail&lt;/artifactId&gt;
            &lt;/exclusion&gt;
            &lt;exclusion&gt;
                &lt;groupId&gt;javax.jms&lt;/groupId&gt;
                &lt;artifactId&gt;jms&lt;/artifactId&gt;
            &lt;/exclusion&gt;
            &lt;exclusion&gt;
                &lt;groupId&gt;com.sun.jdmk&lt;/groupId&gt;
                &lt;artifactId&gt;jmxtools&lt;/artifactId&gt;
            &lt;/exclusion&gt;
            &lt;exclusion&gt;
                &lt;groupId&gt;com.sun.jmx&lt;/groupId&gt;
                &lt;artifactId&gt;jmxri&lt;/artifactId&gt;
            &lt;/exclusion&gt;
        &lt;/exclusions&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
    &lt;/dependency&gt;

    &lt;!-- @Inject --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;javax.inject&lt;/groupId&gt;
        &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
        &lt;version&gt;1&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;!-- Servlet --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
        &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
        &lt;version&gt;2.5&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
        &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
        &lt;version&gt;2.1&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
        &lt;artifactId&gt;jstl&lt;/artifactId&gt;
        &lt;version&gt;1.2&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;!-- Test --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.7&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
        &lt;!-- Exclude the Hamcrest core package that comes with JUNIT --&gt;
        &lt;exclusions&gt;
            &lt;exclusion&gt;
                &lt;artifactId&gt;hamcrest-core&lt;/artifactId&gt;
                &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
            &lt;/exclusion&gt;
        &lt;/exclusions&gt;
    &lt;/dependency&gt;       
    &lt;dependency&gt;
        &lt;groupId&gt;com.jayway.jsonpath&lt;/groupId&gt;
        &lt;artifactId&gt;json-path-assert&lt;/artifactId&gt;
        &lt;version&gt;0.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.github.detro&lt;/groupId&gt;
        &lt;artifactId&gt;phantomjsdriver&lt;/artifactId&gt;
        &lt;version&gt;1.2.0&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&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;/dependency&gt;
&lt;/dependencies&gt;

&lt;build&gt;
    &lt;finalName&gt;${project.name}&lt;/finalName&gt;

    &lt;plugins&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
            &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
            &lt;version&gt;1.0.0&lt;/version&gt;
            &lt;configuration&gt;
                &lt;lifecycleMappingMetadata&gt;
                    &lt;pluginExecutions&gt;
                        &lt;pluginExecution&gt;
                            &lt;pluginExecutionFilter&gt;
                                &lt;groupId&gt;
                                    com.github.klieber
                                &lt;/groupId&gt;
                                &lt;artifactId&gt;
                                    phantomjs-maven-plugin
                                &lt;/artifactId&gt;
                                &lt;versionRange&gt;[0.4,)&lt;/versionRange&gt;
                                &lt;goals&gt;
                                    &lt;goal&gt;install&lt;/goal&gt;
                                &lt;/goals&gt;
                            &lt;/pluginExecutionFilter&gt;
                            &lt;action&gt;
                                &lt;execute&gt;&lt;/execute&gt;
                            &lt;/action&gt;
                        &lt;/pluginExecution&gt;
                    &lt;/pluginExecutions&gt;
                &lt;/lifecycleMappingMetadata&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
            &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.9&lt;/version&gt;
            &lt;configuration&gt;
                &lt;additionalProjectnatures&gt;
                    &lt;projectnature&gt;org.springframework.ide.eclipse.core.springnature&lt;/projectnature&gt;
                &lt;/additionalProjectnatures&gt;
                &lt;additionalBuildcommands&gt;
                    &lt;buildcommand&gt;org.springframework.ide.eclipse.core.springbuilder&lt;/buildcommand&gt;
                &lt;/additionalBuildcommands&gt;
                &lt;downloadSources&gt;true&lt;/downloadSources&gt;
                &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.5.1&lt;/version&gt;
            &lt;configuration&gt;
                &lt;source&gt;1.6&lt;/source&gt;
                &lt;target&gt;1.6&lt;/target&gt;
                &lt;compilerArgument&gt;-Xlint:all&lt;/compilerArgument&gt;
                &lt;showWarnings&gt;true&lt;/showWarnings&gt;
                &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;

        &lt;plugin&gt;
            &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
            &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.2.1&lt;/version&gt;
            &lt;configuration&gt;
                &lt;mainClass&gt;org.test.int1.Main&lt;/mainClass&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;

        &lt;!-- Jacoco code coverage plugin for maven (see surefire plugin config) --&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;!-- Prepares the property pointing to the JaCoCo runtime agent which 
                    is passed as VM argument when Maven the Surefire plugin is executed. --&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;!-- Sets the path to the file which contains the execution data. --&gt;
                        &lt;destFile&gt;${project.build.directory}/coverage-reports/jacoco-ut.exec&lt;/destFile&gt;
                        &lt;!-- Sets the name of the property containing the settings for JaCoCo 
                            runtime agent. --&gt;
                        &lt;propertyName&gt;surefireArgLine&lt;/propertyName&gt;
                        &lt;includes&gt;
                            &lt;include&gt;uk/co/**&lt;/include&gt;
                        &lt;/includes&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
                &lt;!-- Ensures that the code coverage report for unit tests is created 
                    after unit tests have been run. --&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;!-- Sets the path to the file which contains the execution data. --&gt;
                        &lt;dataFile&gt;${project.build.directory}/coverage-reports/jacoco-ut.exec&lt;/dataFile&gt;
                        &lt;!-- Sets the output directory for the code coverage report. --&gt;
                        &lt;outputDirectory&gt;${project.reporting.outputDirectory}/jacoco-unit-tests&lt;/outputDirectory&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
                &lt;!-- Prepares the property pointing to the JaCoCo runtime agent which 
                    is passed as VM argument when Maven Failsafe plugin is executed. --&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;${project.build.directory}/coverage-reports/jacoco-it.exec&lt;/destFile&gt;
                        &lt;includes&gt;
                            &lt;include&gt;uk/co/**&lt;/include&gt;
                        &lt;/includes&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;!-- Ensures that the code coverage report for integration tests after 
                    integration tests have been run. --&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;${project.build.directory}/coverage-reports/jacoco-it.exec&lt;/dataFile&gt;
                        &lt;!-- Sets the output directory for the code coverage report. --&gt;
                        &lt;outputDirectory&gt;${project.reporting.outputDirectory}/jacoco-int-tests&lt;/outputDirectory&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;

        &lt;!-- Sure fire unit test plugin configuration --&gt;
        &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.15&lt;/version&gt;
            &lt;configuration&gt;
                &lt;!-- Sets the VM argument line used when unit tests are run. --&gt;
                &lt;argLine&gt;${surefireArgLine}&lt;/argLine&gt;
                &lt;!-- Skips unit tests if the value of skip.unit.tests property is true --&gt;
                &lt;skipTests&gt;${skip.unit.tests}&lt;/skipTests&gt;
                &lt;!-- Excludes integration tests when unit tests are run. --&gt;
                &lt;excludes&gt;
                    &lt;exclude&gt;**/IT*.java&lt;/exclude&gt;
                &lt;/excludes&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;

        &lt;!-- Maven Failsafe Plugin for integration testing --&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.12&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;id&gt;default&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;/execution&gt;
            &lt;/executions&gt;
            &lt;configuration&gt;
                &lt;!-- Sets the VM argument line used when integration tests are run. --&gt;
                &lt;argLine&gt;${failsafeArgLine}&lt;/argLine&gt;
                &lt;!-- Skips integration tests if the value of skip.integration.tests 
                    property is true --&gt;
                &lt;!-- &lt;skipTests&gt;${skip.integration.tests}&lt;/skipTests&gt; --&gt;
                &lt;systemPropertyVariables&gt;
                    &lt;phantomjs.binary&gt;${phantomjs.binary}&lt;/phantomjs.binary&gt;
                &lt;/systemPropertyVariables&gt;
                    &lt;includes&gt;
                        &lt;include&gt;**/*IT*&lt;/include&gt;
                    &lt;/includes&gt;                 
            &lt;/configuration&gt;                
        &lt;/plugin&gt;

        &lt;!-- Installs PhantomJS so it doesn't have to be pre-installed --&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;com.github.klieber&lt;/groupId&gt;
            &lt;artifactId&gt;phantomjs-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;0.7&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;install&lt;/goal&gt;
                    &lt;/goals&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
            &lt;!-- The version of phantom js --&gt;
            &lt;configuration&gt;
                &lt;version&gt;2.0.0&lt;/version&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;

        &lt;!-- Maven Cargo Plugin - starts tomcat or jetty for integration tests --&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt;
            &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.2.0&lt;/version&gt;
            &lt;configuration&gt;
                &lt;type&gt;standalone&lt;/type&gt;
                &lt;!-- &lt;skip&gt;${skip.integration.tests}&lt;/skip&gt; --&gt;
                &lt;!-- Install apache tomcat into the target directory --&gt;
                &lt;container&gt;
                    &lt;containerId&gt;tomcat7x&lt;/containerId&gt;
                    &lt;zipUrlInstaller&gt;
                        &lt;url&gt;http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.zip
                        &lt;/url&gt;
                        &lt;downloadDir&gt;${project.build.directory}/downloads&lt;/downloadDir&gt;
                        &lt;extractDir&gt;${project.build.directory}/extracts&lt;/extractDir&gt;
                    &lt;/zipUrlInstaller&gt;                      
                &lt;/container&gt;
                &lt;deployables&gt;
                    &lt;deployable&gt;
                        &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
                        &lt;artifactId&gt;${project.artifactId}&lt;/artifactId&gt;
                        &lt;type&gt;war&lt;/type&gt;                           
                    &lt;/deployable&gt;
                &lt;/deployables&gt;                                  
            &lt;/configuration&gt;

            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;id&gt;start container&lt;/id&gt;
                    &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;start&lt;/goal&gt;
                    &lt;/goals&gt;
                    &lt;configuration&gt;
                        &lt;configuration&gt;
                            &lt;properties&gt;
                                &lt;cargo.jvmargs&gt;${failsafeArgLine}&lt;/cargo.jvmargs&gt;                           
                                &lt;cargo.servlet.port&gt;10001&lt;/cargo.servlet.port&gt;                                          
                            &lt;/properties&gt;
                        &lt;/configuration&gt;
                    &lt;/configuration&gt;                                                               
                &lt;/execution&gt;
                &lt;execution&gt;
                    &lt;id&gt;stop&lt;/id&gt;
                    &lt;phase&gt;post-integration-test&lt;/phase&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;stop&lt;/goal&gt;
                    &lt;/goals&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
                &lt;groupId&gt;com.soebes.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-echo-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.1&lt;/version&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;echo&lt;/goal&gt;
                  &lt;/goals&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
            &lt;configuration&gt;
            &lt;echos&gt;
              &lt;echo&gt;This is the Text which will be printed out.&lt;/echo&gt;
              &lt;echo&gt;Displaying value of failsafeArgLineProperty&lt;/echo&gt;
            &lt;echo&gt;[failsafeArgLine] ${failsafeArgLine}&lt;/echo&gt;
            &lt;/echos&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;       
    &lt;/plugins&gt;
    &lt;pluginManagement&gt;
        &lt;plugins&gt;
            &lt;!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                &lt;version&gt;1.0.0&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;lifecycleMappingMetadata&gt;
                        &lt;pluginExecutions&gt;
                            &lt;pluginExecution&gt;
                                &lt;pluginExecutionFilter&gt;
                                    &lt;groupId&gt;
                                        com.soebes.maven.plugins
                                    &lt;/groupId&gt;
                                    &lt;artifactId&gt;
                                        maven-echo-plugin
                                    &lt;/artifactId&gt;
                                    &lt;versionRange&gt;
                                        [0.1,)
                                    &lt;/versionRange&gt;
                                    &lt;goals&gt;
                                        &lt;goal&gt;echo&lt;/goal&gt;
                                    &lt;/goals&gt;
                                &lt;/pluginExecutionFilter&gt;
                                &lt;action&gt;
                                    &lt;ignore&gt;&lt;/ignore&gt;
                                &lt;/action&gt;
                            &lt;/pluginExecution&gt;
                        &lt;/pluginExecutions&gt;
                    &lt;/lifecycleMappingMetadata&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
        &lt;/plugins&gt;
    &lt;/pluginManagement&gt;
&lt;/build&gt;
</code></pre>

<p></p>

<p>The jacoco reports get created for both integration tests and unit tests, the unit test results are ok, the report shows them but no matter what I have tried I can never get the test coverage results for selenium driven integration tests.</p>

<p>Hopefully someone has done this and can help me!</p>