How to exclude some maven project from sonar analysis(如何从声纳分析中排除一些 Maven 项目)
问题描述
我有很多(比如说 10 个(A、B、C...))基于 maven 的 eclipse 插件.
I have many(Let say 10 (A, B, C...)) eclipse plugin which is maven based.
我有一个包含所有其他插件项目的主 pom 文件.现在通过构建具有 sonar:sonar 目标的主文件,它将构建所有插件.
I have one master pom file which includes all other plugin projects.
now by building master file with sonar:sonar goal it will build all the plugins.
所以我的问题:有什么办法可以排除一些插件,比如 A 和 C.?
So my question: Is there is any way so that I can exclude some plugin let say A and C.?
推荐答案
注意:此属性自 4.3 版起已弃用,不应再使用.
NOTE: This property is deprecated since version 4.3 and should not be used anymore.
来自 文档,有一个使用 sonar.skippedModules
您也可以从声纳管理页面执行此操作,如跳过模块部分中所述 这里.
You could also do this from the sonar admin page as documented in the Skipping Modules section here.
这篇关于如何从声纳分析中排除一些 Maven 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从声纳分析中排除一些 Maven 项目
基础教程推荐
- 存储 20 位数字的数据类型 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
