我遇到问题,为声纳分析配置多级Maven模块。如何配置Sonar和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:只分析父模块。
有人对如何处理它有想法吗? (我的意思是不以修改层级文件夹这是非常有帮助的一些其他要求),通过预先
嗨, 已经尝试过,取消对声纳的项目没有帮助。 无论如何感谢 –
你可以验证密钥不存在吗? –