I am trying to generate my coverage report using Jacoco plugin - which will in turn generate jacoco.html as output. But the file is empty with the msg stating "No class files specified" like below.
These are the below configuration I have regarding sonar and Jacoco
Jacoco Configuration:
<org.jacoco.version>0.8.5</org.jacoco.version>
<profile>
<id>sonar-coverage</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.3.0.603</version>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jacoco</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${org.jacoco.version}</version>
<configuration>
<append>true</append>
</configuration>
<executions>
<execution>
<id>agent-for-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>agent-for-integration-test</id>
<phase>verify</phase>
<goals>
<goal>prepare-agent-integration</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Sonar Configuration:
<sonar.language>java</sonar.language>
<sonar.verbose>true</sonar.verbose>
<sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
<sonar.java.source>8</sonar.java.source>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Am I missing any configuration related to the Jacoco plugin?
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/aKGwrKNIin8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c2620a33-6471-4c90-8f8f-9997ff290845%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c2620a33-6471-4c90-8f8f-9997ff290845%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/aKGwrKNIin8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/6e0885a2-9eac-4ede-866c-6940ecdc68c9%40googlegroups.com.
Thanks, Evgeny for the messed pattern. (Corrected now)But I also able to see the include-pattern should be MavenName / FileName - math/operation/* (Jacoco report was generated)and not as JavaName: math.operation.* (Jacoco report not generated)After using MavenName in include-pattern now my report is generated. Hope this is the expected behavior.
Thanks and Regards,Ragul
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c2620a33-6471-4c90-8f8f-9997ff290845%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/aKGwrKNIin8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.