-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi module support #697
Comments
thanks for the summary @guwirth . in my company we try to avoid anything other than flat structure. earlier the vs bootstrapper was introduced that was using modules but we found this to be very constraining for other languages other than c#. Now we are giving a go to the msbuild runner, and it looks promising. I created a wrapper for cxx and msbuild, https://github.com/SonarOpenCommunity/sonar-cxx-msbuild-tasks/tree/master/CxxSonarQubeMsbuidRunner and that heavily uses modules plus it also modifies the basedirs so search paths are totally off when it arrives to cxx plugin, thats the reason for the #695. I will try to make it work as soon as possible. to be honest ive never liked the idea of hacking sonar-project.properties to define a overly complex module structure. Sonar already defines a directory type that expresses the ideas of modules quite nicely imo. supporting so many cases just brings even more complextiy to the plugin and loads of bugs as we see. perhaps we should just stick to the simple cases and do them very well? . flat (relative to root + absolute) . pom.xml and maven, imo its not a easy case to support because of the so many different ways you can define a project. on the other hand, we are not far from supporting the remaining cases that people raise in the past |
In general:
|
then we need the support the remaining cases, they are not that many |
Did some tests, see #695 |
@Bertk I'm also interested in your opinion to this stuff... |
from @Bertk
|
close with #695 |
In the last time we had a lot of issues and discussions about multi module support and path issues. In this discussion I like to collect the use cases which we have to support. I like to ask you to add your samples which should be supported (see also #683, #695, #693, #612, #509, #425, ...).
Here what I know so far:
sonar-project.properties
and reportssonar-project.properties
defines the root baseDirsonar.projectBaseDir
. This allows to havesonar-project.properties
on another location and set the root baseDir.root/module1/src
androot/module2/src
.projectBaseDir
. In this case thesource
setting is ignored. This would beroot/modules/mod1
androot/modules/mod2
for the example 2 below.example 1:
example 2:
Reports
Paths in reports
Currently we are using also this reactor pattern. Means we are looking for reports always in current baseDir and root BaseDir. Question in the case of multi module projects is:
So now it is up to you: How do you like to use this plugin?
Looking forward to get your answers.
The text was updated successfully, but these errors were encountered: