We faced Same Issue. Added below Plugin and it worked 

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
</plugin>

On Saturday, August 20, 2022 at 6:09:15 PM UTC+5:30 Ashwin Singh wrote:

>
> Hi all,
>
> Does anyone know the solution to the problem statement posed ?
>
> Thanks and Regards, 
> Ashwin
> On Wednesday, May 18, 2022 at 1:04:42 PM UTC+5:30 loguk...@gmail.com 
> wrote:
>
>> Hi,
>>
>> Due to some vulnerability issues i upgraded my springboot version to 
>> 2.6.7 from 2.3.9 RELEASE, when the moment i changed springboot 
>> version,jacoco coverage showing 0,Whats the relation between springboot 
>> version and jacoco coverage, Refered so many documents nothing worked. 
>> Thanks in advance.
>>
>> *Springboot version*:
>>
>> <parent>
>> <groupId>org.springframework.boot</groupId>
>> <artifactId>spring-boot-starter-parent</artifactId>
>> <version>2.6.7</version>
>> <relativePath/> <!-- lookup parent from repository -->
>> </parent>
>>
>> *Jacoco plugin*:
>>
>> <plugin>
>> <groupId>org.jacoco</groupId>
>> <artifactId>jacoco-maven-plugin</artifactId>
>> <version>0.8.7</version>
>> <configuration>
>> <excludes>
>> <exclude>**/*Application**</exclude>
>> <exclude>**/repository/**/*</exclude>
>> <exclude>**/entities/**/*</exclude>
>> <exclude>**/config/**/*</exclude>
>> </excludes>
>> </configuration>
>> <executions>
>> <execution>
>> <id>default-prepare-agent</id>
>> <goals>
>> <goal>prepare-agent</goal>
>> </goals>
>> </execution>
>> <execution>
>> <id>jacoco-report</id>
>> <phase>verify</phase>
>> <goals>
>> <goal>report</goal>
>> </goals>
>> </execution>
>> <execution>
>> <id>default-report</id>
>> <phase>verify</phase>
>> <goals>
>> <goal>check</goal>
>> </goals>
>> <configuration>
>> <rules>
>> <rule>
>> <element>PACKAGE</element>
>> <limits>
>> <limit>
>> <counter>LINE</counter>
>> <value>COVEREDRATIO</value>
>> <minimum>0.7</minimum>
>> </limit>
>> </limits>
>> </rule>
>> </rules>
>> </configuration>
>> </execution>
>> </executions>
>> </plugin>
>>
>> Thanks,
>> Logeswari
>>
>

-- 
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/35031fe5-0968-48b5-b420-b353cf4f67d8n%40googlegroups.com.

Reply via email to