maven - 运行 maven Sonar :sonar on multiple branches of the same source project

标签 maven sonarqube

我们目前在 perforce 中有多个功能版本。这些分支中的每一个都有 POM 文件,其中包含与该分支相关联的版本标记和名称标记。

当我们运行 sonar:sonar 时,每个分支扫描都会覆盖另一个分支扫描,而您在 sonar gui 中一次只能看到一个。

Sonar 项目是否可以绑定(bind)到 maven GroupId>ArtifactId>Version,甚至不仅仅是绑定(bind)到 GroupId。

仅供引用,当我们分支 POM 时,GroupId 和 ArtifactId 不会改变。

最佳答案

我在搜索类似主题时发现了您的问题,但我注意到您没有收到答案。如果您通过 -Dsonar.branch,每个分支将被视为不同的项目。如此处所述:

http://sonarqube.15.x6.nabble.com/Sonar-Analysis-for-Feature-Branches-td5004642.html#a5004647

希望这可以帮助。

关于maven - 运行 maven Sonar :sonar on multiple branches of the same source project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21561901/

相关文章:

java - JSPC 是怎么称呼的?

Azure DevOps : Application Error If you are the application administrator, 您可以访问诊断资源

jenkins - sonar.Qualitygate 在 Sonar Qube 5.3 中已弃用。还有什么选择呢?

postgresql - Sonar 分析需要很长时间

java - Jacoco SonarQube 集成

java - 当 SonarQube 检测到新的违规行为时,是否可以在不使用 Build Breaker 插件的情况下中断 Maven 构建?

java - Maven 依赖项为空

tomcat - 是否有可以配置正在运行的 Tomcat 服务器的 Maven 插件或类似工具?

eclipse-plugin - SonarLint for Eclipse 支持 C/C++ 插件吗?

java - Sonar : You must define the following mandatory properties for unknown not resolved