TECHIES WORLD

For Techs.... Techniques.... Technologies....

BashLinux

Maven Error: Caused by: java.lang.NoSuchFieldException: $jacocoAccess at java.base/java.lang.Class.getField

Caused by: java.lang.NoSuchFieldException: $jacocoAccess at java.base/java.lang.Class.getField

This error happens when using the older versions of jacoco-maven-plugin along with the newer versions of Java.

Modify the pom.xml file with the latest version of jacoco-maven-plugin to resolve this problem.

<groupId>org.jacoco</groupId> 
      <artifactId>jacoco-maven-plugin</artifactId> 
<version>0.8.5</version>

That's all…