SonarQube 不对根项目应用分析

SonarQube not apply analyzing to the root project

我只需要分析根项目,忽略嵌套的子模块,但它d

所以我有这个层次结构:

ProjectMain
 -src
 -subProjectAngular
  settings.gradle

我的配置settings.gradle

  rootProject.name="ProjectMain" 
  include 'subProjectAngular'

我只需要分析根项目,忽略嵌套的子模块,但我得到了:

A multi-module project can't have source folders, so 'C:\Users\vagrant\develop-2\site\Source\Site\Vessels\src\main\java' won't be used for the analysis. If you want to analyse files of this folder, y
ou should create another sub-module and move them inside it.

然后我尝试添加多模块配置:

systemProp.sonar.projectKey=site
systemProp.sonar.projectName=vessels-test
systemProp.sonar.projectBaseDir=.
systemProp.sonar.sources=src

systemProp.sonar.modules=javamodule, angularmodule

systemProp.javamodule.sonar.projectName=vessels
systemProp.javamodule.sonar.sources=src
systemProp.javamodule.sonar.projectBaseDir=.
systemProp.javamodule.sonar.language=java

systemProp.angularmodule.sonar.projectName=angular
systemProp.angularmodule.sonar.projectBaseDir=.
systemProp.angularmodule

但在 UI 收到消息:未执行任何分析

仅当我从 settings.gradle 中删除子项目的定义并删除所有子模块配置时才有效

SonarQube 尚不支持此配置。

但好消息是,这将随着 SonarQube 6.4(预计在 2017 年 5 月初)而改变。查看以下门票: