Sonar - how to create sub projects with sonnar-runner

孤街浪徒 提交于 2019-12-11 00:26:55

问题


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


回答1:


No it's not possible with Java runner. Only Maven plugin and Ant task support project structures with modules.

Note that the modules of C# projects are automatically created from the VisualStudio solution file, even if the Java runner is used.




回答2:


Do you project use Maven ?If it is the case it should work fine if you have a pom.xml for each module and one for your parent module.



来源:https://stackoverflow.com/questions/7517016/sonar-how-to-create-sub-projects-with-sonnar-runner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!