声纳 - 如何用sonnar-runner创建子项目 [英] Sonar - how to create sub projects with sonnar-runner

查看:255
本文介绍了声纳 - 如何用sonnar-runner创建子项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java项目,它由几个模块组成。我使用Sonar来静态分析我的代码。目前,我使用声纳运动员来分析每个模块,它们在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.

这篇关于声纳 - 如何用sonnar-runner创建子项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆