score:0

I had the same problem but I am running via sonar-runner, not via Maven, because we use SBT. I added these lines to my sonar-project.properties files as described here:

sonar.dynamicAnalysis=reuseReports
sonar.surefire.reportsPath=test-reports
sonar.core.codeCoveragePlugin=cobertura
sonar.java.coveragePlugin=cobertura
sonar.cobertura.reportPath=target/scala-[scala-version]/coverage-report/cobertura.xml

Note you need to put your scala version e.g. 2.10, 2.9 where it says [scala-version]. This got the analysis to start, but then for me it is still broken because we are using String Interpolation. This was not supported until Scala 2.10 and it breaks the Scala analyzer. I started to update the jars that being included in the Maven POM, but moving the plugin to Scala 2.10 is non-trivial because it uses reflect.generic.ModifierFlags which was removed after 2.9.3. This is all fixable but I will need to look at the Scala source! Maybe it will work for you if you are using Scala 2.9.


Related Query

More Query from same tag