简体   繁体   English

声纳每个组件的质量概况

[英]Sonar separate quality profile per component

I have a multi-module maven project and have it's modules as Sonar components. 我有一个多模块Maven项目,并将其模块作为Sonar组件。

Is it possible to set alerts separate per module/component, or Sonar considers the whole project? 是否可以针对每个模块/组件分别设置警报,或者Sonar考虑整个项目? If not, what's the best way of having my maven modules as separate projects in Sonar, so that mvn sonar:sonar is only executed once. 如果没有,那么将我的maven模块作为Sonar中的独立项目的最佳方法是什么,以便mvn sonar:sonar仅执行一次。 I use cobertura for report generation. 我使用cobertura生成报告。

At the moment of writing this answer, that feature is not supported by Sonar. 在撰写此答案时,Sonar不支持该功能。 If separate metrics needed you need to create a separate project and trigger a separate build from Jenkins and providing specific pom.xml file for desired module. 如果需要单独的指标,则需要创建一个单独的项目,并从Jenkins触发一个单独的构建,并为所需的模块提供特定的pom.xml文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM