Sonar ignoring scala code

We have multi module maven projects and also multi language projects. Currently we are using Sonarqube 6.7.4 with the Sonar maven plugin version - 3.6.0.1398.
If I explicitly add sonar.sources=src/main in sonar.properties, all the projects are getting scanned for everything under src/main including java and also only scala and java/scala. But this option is missing the scan of pom.xml file and any xml files for that project.
If I do not add sonar.sources option as src/main, then the scala files are getting ignored and only java and xml files are getting scanned.
Is there an option that I can use to get everything under that project scanned including pom.xml or any xml files, all the java and scala files ?
I am not sure what I am missing here.

Thanks !

Hi,

I guess you could set sonar.sources=. or perhaps sonar.sources=src/main,pom.xml?

 
HTH,
Ann

Maven Java/Scala MultiModule Project Ignores Scala Sources Is a similar problem, it might help for anyone running into this.

1 Like