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.

I also tried:

<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>


But that ends in:

[*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

søndag 28. oktober 2018 23.36.56 UTC+1 skrev Evgeny Mandrikov følgende:
>
> https://www.jacoco.org/jacoco/trunk/doc/report-aggregate-mojo.html
>
> https://stackoverflow.com/questions/41885772/jacoco-simple-integration-test-solution/41901853#41901853
>
> On Sunday, October 28, 2018 at 7:37:51 PM UTC+1, David Karlsen wrote:
>>
>> I have a multi-module maven-project - among other modules, there is:
>> - service
>> - dao
>> - model
>>
>> My tests are in service, and the services uses model and dao - but 
>> coverage is only measured for service? Is there any way to work around this?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/1d8419c7-8631-45af-af35-610f6ef9f35a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to