我有多个级别的模块项目,但sonar qube给出了累积测试报告,但我还没有运行任何聚合/附加配置,知道吗?

vawmfj5a  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(139)

我使用的是jdk1.8、maven 3.3、jacoco 0.8.7 sonarqube插件6.7.6
pom.xml

<plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.8.7</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <!-- attached to Maven test phase -->
                    <execution>
                        <id>report</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

jenkins命令-dmaven.test.failure.ignore=true-u clean org.jacoco:jacocomaven插件:0.8.7:prepare agent org.jacoco:jacocomaven插件:0.8.7:report test

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题