I am getting an error is already instrumented while using jacoco code coverage using maven. My project is maven project.It has maven dependencies powermock, mockitto and jacoco plugin.
I believe it is causing error "default-restore-instrumented-classes". If I remove this it is not generating jacoco coverage report.
When I run mvn clenn install, the build is working fine and generating jacoco coverage report. But in console it is generating huge exceptions already instrumented
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-instrument</id>
<goals>
<goal>instrument</goal>
</goals>
</execution>
<execution>
<id>default-restore-instrumented-classes</id>
<goals>
<goal>restore-instrumented-classes</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>