【发布时间】:2019-05-27 18:33:58
【问题描述】:
我有一个多模块 Maven 项目。
parent
child1
child2
child3-report
所有子项目都有单元测试,child3 依赖于child1 和child2。跟随 child3 的 pom
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.2</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
生成的 jacoco 聚合报告仅包括 child1 和 child2 的报告,但不包括 child3。如何解决这个问题?
不想仅为报告创建第四个子模块。
【问题讨论】:
标签: java maven junit jacoco jacoco-maven-plugin