coveralls-maven-plugin icon indicating copy to clipboard operation
coveralls-maven-plugin copied to clipboard

fails to parse cobertura xml

Open shekhargulati opened this issue 11 years ago • 1 comments

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')

shekhargulati avatar Mar 07 '14 19:03 shekhargulati

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.

trautonen avatar Mar 08 '14 23:03 trautonen