[Improvement:
unified the jacoco version. add a task that generate jacoco report only in xml format.
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>coverage-xml</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>run</goal>
+ </goals>
+
+ <id>default-cli</id>
+ <configuration>
+ <target>
+ <!-- Execute an ant task within maven -->
+ <echo message="Generating JaCoCo Reports"/>
+ <taskdef name="report" classname="org.jacoco.ant.ReportTask">
+ <classpath path="${basedir}/target/jacoco-jars/*.jar"/>
+ </taskdef>
+
+ <mkdir dir="${basedir}/target/coverage-report"/>
+
+ <report>
+ <executiondata>
+ <fileset dir="${basedir}">
+ <include name="target/jacoco.exec"/>
+ </fileset>
+ </executiondata>
+
+ <structure name="Integration Tests Coverage Report">
+ <classfiles>
+ <fileset dir="${basedir}/target/classes"/>
+ </classfiles>
+
+ <sourcefiles encoding="UTF-8">
+ <dirset dir="${project.basedir}/../">
+ <include name="**/java" />
+ <include name="**/groovy" />
+ </dirset>
+ </sourcefiles>
+ </structure>
+ <xml destfile="${basedir}/target/coverage-report/coverage-report.xml"/>
+ </report>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jacoco</groupId>
+ <artifactId>org.jacoco.ant</artifactId>
+ <version>0.8.6</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
