https://github.com/Teemitze/TelegramBot
Why is Jacoco statistics not displayed? A warning appears during Assembly
Skipping JaCoCo execution due to missing execution data file.
https://github.com/Teemitze/TelegramBot
Why is Jacoco statistics not displayed? A warning appears during Assembly
Skipping JaCoCo execution due to missing execution data file.
In your project
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<argLine>--enable-preview</argLine>
</configuration>
</plugin>
whereas similarly to many other questions here such as "Jacoco doesn't produce coverage reports" and quoting JaCoCo documentation:
If your project already defines VM arguments for test execution, be sure that they will include property defined by JaCoCo.
One of the ways to do this in case of maven-surefire-plugin - is to use syntax for late property evaluation:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>@{argLine} -your -extra -arguments</argLine> </configuration> </plugin>
Another way is to define "argLine" as a Maven property rather than as part of the configuration of maven-surefire-plugin:
<properties> <argLine>-your -extra -arguments</argLine> </properties> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- no argLine here --> </configuration> </plugin>