They are declared in the root pom.xml, I want SonarQube to pick up all of the modules, but when I explicitly add frontend/component/apps to sonar.sources, then some fictional paths are created during Sonar scan, for example ***\frontend\component\server\src\main, which crashes the scan.
When I tried to split the project in modules with sonar.modules then Sonar seems to scan server\src\main for all the modules, which are ignored, then I’m getting error about scanning files multiple times is not allowed.
I wouldn’t reccomend doing that in this case – as it will apply to all modules (and that’s why you’re getting the funky paths).
If you have a pom.xml for the /frontend/ directory (I think when you say They are declared in the root pom.xml that means yes), you can adjust sonar.sources specifically for that module.