I am running into issues similar to [https://stackoverflow.com/questions/25432810/error-when-trying-to-use-org-codehaus-mojocobertura-maven-plugin2-6].
LOGS: Execution default-cli of goal org.codehaus.mojo:cobertura-maven-plugin:2.6:instrument failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.6 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path /usr/local/Cellar/openjdk/15.0.2/libexec/openjdk.jdk/Contents/Home/../lib/tools.jar
RESEARCH:
When I do java --version
, I get:
java 11.0.6 2020-01-14 LTS
Upon searching SO, I found that since I am on the JDK 11, the tools.jar
has been removed [https://stackoverflow.com/a/60549167/13241701]. When I run the jacoco, the test cases run. But
ISSUE: I want to report the cobertura coverage report only.
Can I get some help?