定义插件时,Clover不会汇总报告

时间:2019-06-05 09:46:38

标签: maven maven-plugin clover

在为maven clover插件定义以下配置时,我希望覆盖范围会汇总到所有maven模块中,但是会检查每个模块的覆盖范围。

<plugin>
                    <groupId>org.openclover</groupId>
                    <artifactId>clover-maven-plugin</artifactId>
                    <version>${clover-plugin.version}</version>
                    <configuration>
                        <conditionalPercentage>100.0000</conditionalPercentage>
                        <targetPercentage>100.0000</targetPercentage>
                        <includesTestSourceRoots>false</includesTestSourceRoots>
                        <setTestFailureIgnore>true</setTestFailureIgnore>
                        <skip>${skipClover}</skip>
                    </configuration>
                    <executions>
                        <execution>
                            <phase>verify</phase>
                            <goals>
                                <goal>instrument</goal>
                                <goal>aggregate</goal>
                                <goal>clover</goal>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

我知道可以通过删除executions部分并仅运行以下命令来代替mvn clean clover:setup test clover:aggregate clover:clover clover:check

我想知道是否也可以通过在我的父pom中配置插件来实现上述目的。这样,我可以在所有项目上运行mvn clean install来检查构建期间的覆盖范围。否则,我需要更新所有构建计划以直接使用三叶草目标。

0 个答案:

没有答案