trautonen / coveralls-maven-plugin

Maven plugin for submitting Java code coverage reports to Coveralls web service.
MIT License
312 stars 123 forks source link

fails to parse cobertura xml #32

Open shekhargulati opened 10 years ago

shekhargulati commented 10 years ago

Hello, I am trying to integrate the plugin with my application(https://github.com/shekhargulati/milestogo) but getting this exception. The TravisCI build https://travis-ci.org/shekhargulati/milestogo/jobs/20308559

[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:2.1.0:cobertura (default-cli) on project milestogo: Processing of input or output data failed: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

trautonen commented 10 years ago

Most likely the Coveralls API was down when the report submission happened. The error message from the plugin was not good at all and the error messages were improved in the 2.2.0 version. See discussion in #31.

The other issue you had with JaCoCo is that it is not Java 8 compliant. You cannot run JaCoCo without instrumenting the tests, and it seems that the instrumentation does not work with Java 8. See https://github.com/jacoco/jacoco/issues/74.