It feels painful every time configuring CI using coveralls. Here’s some hints when working with Java project.

  1. Get the plugin and JaCoCo
  2. Turn on the repository in Coveralls
  3. Set ‘repoToken’ in travis as environment variable
  4. Reference repoToken in pom of your project using ‘${env.repoToken}’ ```
org.eluder.coveralls coveralls-maven-plugin ${env.repoToken} 4.3.0

5. Add this to your pom if it doesn't have source encoding
UTF-8

6. Add this to travis config file

after_success:

  • mvn jacoco:report coveralls:report ```

References: