galexandre / sonar-cobertura

Cobertura plugin for SonarQube
GNU General Public License v3.0
30 stars 26 forks source link

Plugin fails in Sonarqube 5.6.3 #12

Closed rschaeferhig closed 5 years ago

rschaeferhig commented 6 years ago

One of my customers has a Java app with two folders containing many of the same files/classes: PaymentProcessorWeb PaymentProcessorV2Web

They point Cobertura at PaymentProcessorV2Web and create a coverage.xml file. The file is picked up in Sonarqube. The file's "source" property points to PaymentProcessorV2Web but the failure message says:

java.lang.IllegalStateException: Can't create measure for line 467 for file 'D:/a6/pi_paymentprocessor/autobuild_v1_0/trunk/src/PaymentProcessorWeb/src/com/thehartford/consumer/ams/AbstractBaseProxy.java' with 459 lines

It appears the plugin is looking at PaymentProcessorWeb (not "V2") and failing. We've also set Sonarqube sonar.sources=PaymentProcessorV2Web and sonar.exclusions=PaymentProcessorWeb for what it's worth.

Any thoughts?

I've included the Sonarqube log, build.xml and coverage.xml. log (1).txt

build.xml.txt coverage.xml.txt

galexandre commented 6 years ago

Hi @rschaeferhig,

I will have a look ASAP.

Regards

rschaeferhig commented 6 years ago

Thanks @galexandre. Let me know if you need more info.