声纳跳过除根目录之一以外的所有模块 [英] sonar skipping all modules except root one
问题描述
我正在尝试使用Maven在整个项目上运行声纳,但是由于某种原因,它会跳过子模块,仅分析根模块.对于这种奇怪的行为有什么解释吗?
I'm trying to run sonar on entire project using maven, but for some reason it skips submodules and analyse only root module. Is there any explanation of such a strange behaviour?
任何帮助将不胜感激!
Any help is greatly appreciated!
这是maven的最终输出:
Here is maven final output:
mvn全新安装不会跳过任何内容,但是mvn sonar:sonar会跳过.
mvn clean install doesn't skip anything, but mvn sonar:sonar do.
推荐答案
SonarQube Maven插件是一个聚合器插件.它仅在根模块上执行.这就是Maven将子模块标记为SKIPPED的原因,即使它们已被正确分析.
The SonarQube Maven Plugin is an aggregator plugin. It's executed only on the root module. That's the reason why Maven flags sub-modules as SKIPPED, even if they are correctly analysed.
这篇关于声纳跳过除根目录之一以外的所有模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!