Integration testing 即使执行了测试,Jacoco报告聚合也显示0覆盖率

Integration testing 即使执行了测试,Jacoco报告聚合也显示0覆盖率,integration-testing,jacoco,jacoco-maven-plugin,Integration Testing,Jacoco,Jacoco Maven Plugin,我的maven项目目录结构如下: parent -child -src/java -src/test <!-- unit tests --> -pom.xml -integration_test -src/test -pom.xml -report -pom.xml -pom.xml parent -孩子 -src/java -src/测试 -pom.xml -集成测试 -src/测试 -pom.xml -报告 -po

我的maven项目目录结构如下:

parent
  -child
    -src/java
    -src/test <!-- unit tests -->
    -pom.xml
  -integration_test
    -src/test
    -pom.xml
  -report
    -pom.xml
  -pom.xml
parent
-孩子
-src/java
-src/测试
-pom.xml
-集成测试
-src/测试
-pom.xml
-报告
-pom.xml
-pom.xml
由于集成测试和源代码在不同的模块中,所以我使用了Jacoco report Agragate(报告模块)

父pom.xml

        <profile>
            <id>codecoverage-it</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <version>0.8.4</version>
                        <executions>
                            <execution>
                                <id>prepare-agent</id>
                                <goals>
                                    <goal>prepare-agent</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>prepare-agent-integration</id>
                                <goals>
                                    <goal>prepare-agent-integration</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

把它盖住
org.jacoco
jacocomaven插件
0.8.4
配制剂
配制剂
准备代理集成
准备代理集成
报表模块pom.xml

<dependencies>
        <dependency>
            <groupId>###</groupId>
            <artifactId>child</artifactId>
            <version>${project.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>###</groupId>
            <artifactId>integration_test</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>overage-aggregate</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>report-aggregate</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>report-aggregate</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

###
小孩
${project.version}
编译
###
集成测试
${project.version}
测试
超龄骨料
org.jacoco
jacocomaven插件
报告汇总
验证
报告汇总

单元测试代码覆盖率报告显示正确,但对于集成测试,即使执行了测试,代码覆盖率也显示为0

是否能够解决此问题?