IntegrationTest fails with cobertura

I wanted to generate the coverage report for my project. For that, I found that I can use cobertura []. I added the following in pom.xml for java 11


When I am running mvn cobertura:cobertura I am getting java.lang.ClassFormatError: Nest member class_info_index 35 has bad constant type in class file which is not closed, I think. When I am running mvn clean package the file runs but is not producing the .xml file. Is there any way in which I can achieve the coverage report.