Is support of Maven 4.x planned for the openclover maven plugin?
Closed this issue · 3 comments
As I cannot file any issues in https://github.com/openclover/clover-maven-plugin I'm posting my question here.
I have a project running well with openclover 4.5.0 configured as
<pluginManagement>
<plugins>
<plugin>
<groupId>org.openclover</groupId>
<artifactId>clover-maven-plugin</artifactId>
<version>4.5.0</version>
<configuration>
<targetPercentage>75%</targetPercentage>
</configuration>
<executions>
<execution>
<phase>pre-site</phase>
<id>instrument</id>
<goals>
<goal>instrument</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
that runs fine with Maven 3.9.5 and fails with Maven 4.x as coverage is not measured correctly and build fails with:
[INFO] OpenClover Version 4.5.0, built on 2023-10-04
[INFO] Coverage check FAILED
[ERROR] The following coverage targets for null were not met:
Total coverage of 0% did not meet target of 75%
[ERROR] Total coverage of 0% did not meet target of 75%
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Total time: 45.505 s
[INFO] Finished at: 2023-10-20T22:37:55+02:00
[INFO] --------------------------------------------------------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openclover:clover-maven-plugin:4.5.0:check (report) on project myProject: Build failed to meet Clover coverage targets: The following coverage targets for null were not met:
[ERROR] Total coverage of 0% did not meet target of 75%
[ERROR] -> [Help 1]
Hi! Support for Maven 4.x in the long term - absolutely, this is one of three primary build systems supported.
Having said this, this is rather unlikely to happen in this calendar year. Current plans are:
- 4.5.0 released this month
- 4.5.1 with fixes for 'record' - hopefully this month
- 4.5.2 with switch expressions and sealed classes - hopefully Nov/Dec
- 4.6.0 with full support for Java 17 and Groovy 4 - hopefully end of Q1'24
I will keep Maven 4 in mind, maybe I'll adjust the roadmap after Java 17 is done.
Thanks for the feedback, would you mind enabling issues on the plugin subproject over at https://github.com/openclover/clover-maven-plugin ?
You're welcome. Issues are enabled.