Sonar - 如何使用 sonar-runner 创建子项目 [英] Sonar - how to create sub projects with sonnar-runner
问题描述
我有一个由几个模块组成的 Java 项目.我正在使用 Sonar 静态分析我的代码.目前我正在使用 sonar-runner 来分析每个模块,它们在 Sonar 的主页中显示为不同的项目.我想在主页上看到主项目名称,并且,一旦我单击它,然后单击组件" - 将其所有模块视为子项目 - 就像它出现在这里一样:
I have a Java project which consists of a couple of modules. I am using Sonar to statically analyse my code. Currently I am using sonar-runner to analyse each of the modules, and they appear as different Projects in the main page of Sonar. I would like to see the main project name on the main page, and, once I will click on it, and than on "Components" - to see all of it's modules as sub-projects - just like it appears here:
http://nemo.sonarsource.org/components/index/308832
推荐答案
不,Java runner 不可能.只有 Maven 插件和 Ant 任务支持带有模块的项目结构.
No it's not possible with Java runner. Only Maven plugin and Ant task support project structures with modules.
请注意,C# 项目的模块是从 VisualStudio 解决方案文件自动创建的,即使使用 Java 运行程序也是如此.
Note that the modules of C# projects are automatically created from the VisualStudio solution file, even if the Java runner is used.
这篇关于Sonar - 如何使用 sonar-runner 创建子项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!