Sonar Maven Plugin: How do I exclude test source directories?

前端 未结 2 631
傲寒
傲寒 2021-02-19 05:57

I have a Maven project with Java sources and Scala test sources. I generate code coverage using Jacoco during the verify stage. When I try to run the s

2条回答
  •  忘掉有多难
    2021-02-19 06:04

    Either add a step to remove the folder before running the SonarQube analysis. Or set exclusions on test files. See http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreFiles

提交回复
热议问题