<profiles>
<profile>
<id>jacocoreport</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.2</version>
<executions>
<execution>
<goals>
<goal>merge</goal>
</goals>
</execution>
</executions>
<configuration>
<fileSets>
<fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
<directory>${project.build.directory}</directory>
<includes>
<include>**/target/*.exec</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</plugin>
</plugins>
</build>
</profile>
[DEBUG] Configuring mojo 'org.jacoco:jacoco-maven-plugin:0.8.2:merge' with basic configurator -->
[DEBUG] (f) destFile = /Users/et2448/projects/tac/jfr/tac-jfr-server/target/jacoco.exec
[DEBUG] (s) directory = /Users/et2448/projects/tac/jfr/tac-jfr-server/target
[DEBUG] (s) includes = [**/target/*.exec]
[DEBUG] (f) fileSets = [org.apache.maven.shared.model.fileset.FileSet@5de4ac96]
[DEBUG] (f) project = MavenProject: com.edb.fs.tac.jfr.srv:jfr-srv:6.1.2-SNAPSHOT @ /Users/et2448/projects/tac/jfr/tac-jfr-server/pom.xml
[DEBUG] (f) skip = false
[DEBUG] -- end configuration --
[INFO] Skipping JaCoCo merge execution due to missing execution data files
That works for generating a jacoco html-report.I however need the merged .exec files for sonar - so that I can see the coverage in sonar.