cobertura-maven-plugin
plugin to your pom.xml file, see here
mvn cobertura:cobertura
and mvn clean package
during your CI tests, see here
bash <(curl -s https://codecov.io/bash)
at the end of your CI build, see here
Use cobertura-maven-plugin
plugin version 2.7
to collect test coverage without codecov token , can support jdk version: java1.7
, java8
+ will not maintained
So if you want to ues a higher jdk version , please see this repo : https://github.com/lovepoem/codecov-travis-maven-junit5-example
Other Official Examples