Hi all

I have problem after upgrade from jacoco 0.7.4 to jacoco 0.7.6 : maven surefire 
does not start forked VM:

Error occurred during initialization of VM
Failed to find Premain-Class manifest attribute in 
***org.jacoco.agent\\0.7.6.201602180812\\org.jacoco.agent-0.7.6.201602180812-runtime.jar
agent library failed to init: instrument.

>From what I discovered:
- jacoco agent 0.7.4 has META-INF/MANIFEST.MF with Premain class attribute
- jacoco agent 0.7.6 has META-INF/MANIFEST.MF without Premain class attribute, 
however it contains jacocoagent.jar inside with correct Manifest mf.

I have used 
http://central.maven.org/maven2/org/jacoco/org.jacoco.agent/0.7.6.201602180812/org.jacoco.agent-0.7.6.201602180812.jar
 from mavencentral, it seems that instead of re-package all classes it have 
some jar-archives inside. Is this correct way of packaging ? It seems that JVM 
is searching for Premain Class attribute in META-INF/MANIFEST.MF, where it is 
missing. 


Also I don't think that having jar in jar is correct approach in java, JVM 
probably won't find classes in internal archive (at least nativley, they are 
some solutions to make it possible, but I am not aware if jacoco-agent is using 
it), could somebody explain how this is supposed to work ? Does only me is 
having an issue with jacoco-agent 0.7.6 ?


Regards,


Grzesiek

-- 
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/9e3b6345-1a81-454c-a206-81ec888c3fa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to