我需要仅分析根项目,并忽略嵌套的子模块,但是它
所以我有这个层次结构:
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 中移除子项目的定义并删除所有子模块配置
时,它才有效答案 0 :(得分:2)