三叶草插件上的双重检测错误

Double Instrumentation error on clover plugin

我正在为一个多模块项目使用 clover maven 插件。我在 运行 三叶草的工具目标上遇到了 CloverException。它显示 "Double Instrumentation detected" 似乎已经被 Clover 检测过。我不知道这是怎么回事,我已经在 google 上搜索过,但仍然不知道该怎么做。有没有人以前见过这个错误,也许也解决了它?

"Double instrumentation detected" 表示您的来源已被 Clover 检测过,您正在尝试再次检测它们。

首先,请检查您是否在构建中两次 运行 Clover 的检测(例如 clover2:setup + clover2:instrument)。

其次,请检查您是否没有任何由 Clover 检测的源意外提交到版本控制系统。您可以通过源文件中存在的“/* $$ This file has been instrumented by Clover”注释来识别此类文件。