Hi,

Your partial snippet of configuration is not different from many others 
that work. Why do you exclude the possibility that your problem lies 
outside of this partial configuration?

Partial snippets are not debuggable.

Please stop asking about partial snippets and always provide a complete 
example.

And BTW configuration for Sonar has nothing to do with the generation of 
JaCoCo HTML report.

On Wednesday, March 25, 2020 at 9:37:00 AM UTC+1, ragulrangara...@gmail.com 
wrote:
>
> Hi All,
>
> 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.
>
>
> [image: jacoco.png][image: jacocosession.png]
>
>
>
> 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 the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/c2620a33-6471-4c90-8f8f-9997ff290845%40googlegroups.com.

Reply via email to