I have a maven project .I added the following to the pom.xml :
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<executions>
<execution>
<id>jacoco-instrument</id>
<phase>test</phase>
<goals>
<goal>instrument</goal>
</goals>
</execution>
</executions>
</plugin>
when I do mvn clean install , I get
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError:
org/jacoco/agent/rt/internal_14f7ee5/Offline
at
org.apache.atlas.fs.model.FSDataModelGenerator.$jacocoInit(FSDataModelGenerator.java)
at
org.apache.atlas.fs.model.FSDataModelGenerator.main(FSDataModelGenerator.java)
... 6 more
Caused by: java.lang.ClassNotFoundException:
org.jacoco.agent.rt.internal_14f7ee5.Offline
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 8 more
How to resolve ?
--
You received this message because you are subscribed to the Google Groups
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/7840176a-6f89-424b-ae4f-55b9341d8be3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.