我正在尝试用maven配置三叶草。在父pom文件中,情侣配置是休眠的:
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<licenseLocation>c:\clover.license</licenseLocation>
<reportDescriptor>C:\clover-report.xml</reportDescriptor>
<includesTestSourceRoots>false</includesTestSourceRoots>
</configuration>
</plugin>我有一个多模块项目,看起来像这样:
<modules>
<module>module1</module>
<module>module2</module>
<module>module3</module>
</modules>通过以下方式运行三叶草:
mvn clover2:setup test clover2:aggregate clover2:clover问题是,clover只为第一个模块(module1)构建clover.db,而不是为其余模块构建。我应该怎么做才能让三叶草遍历所有的模块?
我也尝试过,没有聚合,也没有成功。
发布于 2015-03-22 05:06:12
我猜你的最后两个模块之前已经编译过了,因此javac没有重新编译由Clover插装的源代码。尝试添加“干净”目标:
mvn clean Clover2:设置测试Clover2:聚合clover2:clover
https://stackoverflow.com/questions/22913327
复制相似问题