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

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

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

  1. <plugin>
  2. <groupId>org.jacoco</groupId>
  3. <artifactId>jacoco-maven-plugin</artifactId>
  4. <version>0.8.7</version>
  5. <executions>
  6. <execution>
  7. <goals>
  8. <goal>prepare-agent</goal>
  9. </goals>
  10. </execution>
  11. <!-- attached to Maven test phase -->
  12. <execution>
  13. <id>report</id>
  14. <phase>test</phase>
  15. <goals>
  16. <goal>report</goal>
  17. </goals>
  18. </execution>
  19. </executions>
  20. </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

暂无答案!

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

相关问题