【发布时间】:2015-10-06 02:37:09
【问题描述】:
我在为声纳分析配置多级 maven 模块时遇到问题。
使用以下结构可以正常工作:
parent module
|- level 1
|- module with code to analyze
但是,如果我使用要分析的代码向模块添加深度,我将无法对其进行配置。
parent module
|- level 1
|- level 2
|- module with code to analyze
我尝试了几种配置:
- 无特殊配置:
我收到
Can not execute SonarQube analysis: The project 'level 2' is already defined in SonarQube but not as a module of project 'level 1'. If you really want to stop directly analysing project 'level 2', please first delete it from SonarQube and then relaunch the analysis of project 'level 1'.错误。我不想在级别 1 上启动,因为我的集成测试在同一级别,直接在父模块中。 - 在级别 1 和级别 2 上使用 skippedModules 属性:仅分析父模块。
- 通过指定“包含要分析的代码的模块”来使用includedModules:仅分析父模块。
有人知道如何处理它吗? (我的意思是不修改层次文件夹,这对其他一些需求真的很有帮助)
提前致谢
【问题讨论】:
标签: sonarqube