Skipping JaCoCo execution due to missing execution data

7,119 views
Skip to first unread message

cognitio...@gmail.com

unread,
Aug 4, 2015, 2:33:40 PM8/4/15
to JaCoCo and EclEmma Users
Greetings Everyone,

Recently jacoco:report coveralls:report stopped working. I have tried endless permutations from suggestions found here and elsewhere.

Command:

mvn -X clean install jacoco:report coveralls:report

End of output:

[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (default-cli) @ htm.java ---
[DEBUG] Configuring mojo org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report from plugin realm ClassRealm[plugin>org.jacoco:jacoco-maven-plugin:0.7.5.201505241946, parent: sun.misc.Launcher$AppClassLoader@6d6f6e28]
[DEBUG] Configuring mojo 'org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report' with basic configurator -->
[DEBUG] (f) dataFile = /Users/cogmission/git/htm.java/target/jacoco.exec
[DEBUG] (f) outputDirectory = /Users/cogmission/git/htm.java/target/site/jacoco
[DEBUG] (f) outputEncoding = UTF-8
[DEBUG] (f) project = MavenProject: org.numenta:htm.java:0.5.3-SNAPSHOT @ /Users/cogmission/git/htm.java/pom.xml
[DEBUG] (f) skip = false
[DEBUG] (f) sourceEncoding = UTF-8
[DEBUG] -- end configuration --
[INFO] Skipping JaCoCo execution due to missing execution data file:/Users/cogmission/git/htm.java/target/jacoco.exec
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.419 s
[INFO] Finished at: 2015-08-04T13:24:12-05:00
[INFO] Final Memory: 29M/1021M
[INFO] ------------------------------------------------------------------------

(see line --> [INFO] Skipping JaCoCo execution due to missing execution data )


I currently define argLine in properties as such: (main level not in plugin)

<properties>
<argLine>-Xmx2048m -Xms1024m</argLine>
</properties>

Then use argLine as such:

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<verbose>true</verbose>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<sourceEncoding>UTF-8</sourceEncoding>
<repoToken>XXXXXXXXXXXX</repoToken>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Please help my open source project?

Thanks,
David

Evgeny Mandrikov

unread,
Aug 28, 2015, 10:17:46 AM8/28/15
to JaCoCo and EclEmma Users, cognitio...@gmail.com
Hi,

Is reproducer available publicly, so that to check quickly?

cognitio...@gmail.com

unread,
Aug 28, 2015, 10:23:29 AM8/28/15
to JaCoCo and EclEmma Users, cognitio...@gmail.com
Hi,

Yes,

> git clone https://github.com/numenta/htm.java.git

run...

> mvn -X clean install jacoco:report coveralls:report

...

proceed to jump out of window... :-P

cognitio...@gmail.com

unread,
Aug 28, 2015, 10:31:51 AM8/28/15
to JaCoCo and EclEmma Users, cognitio...@gmail.com
Please tell me if this is what you are looking for? Are you able to help?

Thanks

Evgeny Mandrikov

unread,
Aug 28, 2015, 10:34:17 AM8/28/15
to JaCoCo and EclEmma Users, cognitio...@gmail.com
And here is pull request for your project - https://github.com/numenta/htm.java/pull/293

For the record this is related to the "argLine" - http://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html

Best regards

cognitio...@gmail.com

unread,
Aug 28, 2015, 10:44:17 AM8/28/15
to JaCoCo and EclEmma Users, cognitio...@gmail.com
@Evgeny

Thank you very very much for looking into this. I still get the following error?

[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping htm.java
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.244 s
[INFO] Finished at: 2015-08-28T09:39:57-05:00
[INFO] Final Memory: 24M/958M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project htm.java: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/cogmission/git/htm.java && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -javaagent:/Users/cogmission/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/Users/cogmission/git/htm.java/target/jacoco.exec -Xmx2048m -Xms1024m -jar /Users/cogmission/git/htm.java/target/surefire/surefirebooter710147367167232406.jar /Users/cogmission/git/htm.java/target/surefire/surefire8958551388403083911tmp /Users/cogmission/git/htm.java/target/surefire/surefire_07031009613724672260tmp
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project htm.java: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /Users/cogmission/git/htm.java && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -javaagent:/Users/cogmission/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/Users/cogmission/git/htm.java/target/jacoco.exec -Xmx2048m -Xms1024m -jar /Users/cogmission/git/htm.java/target/surefire/surefirebooter710147367167232406.jar /Users/cogmission/git/htm.java/target/surefire/surefire8958551388403083911tmp /Users/cogmission/git/htm.java/target/surefire/surefire_07031009613724672260tmp
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
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:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /Users/cogmission/git/htm.java && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -javaagent:/Users/cogmission/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/Users/cogmission/git/htm.java/target/jacoco.exec -Xmx2048m -Xms1024m -jar /Users/cogmission/git/htm.java/target/surefire/surefirebooter710147367167232406.jar /Users/cogmission/git/htm.java/target/surefire/surefire8958551388403083911tmp /Users/cogmission/git/htm.java/target/surefire/surefire_07031009613724672260tmp
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.lang.RuntimeException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /Users/cogmission/git/htm.java && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -javaagent:/Users/cogmission/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/Users/cogmission/git/htm.java/target/jacoco.exec -Xmx2048m -Xms1024m -jar /Users/cogmission/git/htm.java/target/surefire/surefirebooter710147367167232406.jar /Users/cogmission/git/htm.java/target/surefire/surefire8958551388403083911tmp /Users/cogmission/git/htm.java/target/surefire/surefire_07031009613724672260tmp
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:515)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:380)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:167)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:990)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:824)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:722)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Evgeny Mandrikov

unread,
Aug 28, 2015, 10:53:58 AM8/28/15
to JaCoCo and EclEmma Users, cognitio...@gmail.com
Not sure that this is related to JaCoCo, let's continue discussion in pull request.

cognitio...@gmail.com

unread,
Aug 28, 2015, 10:58:15 AM8/28/15
to JaCoCo and EclEmma Users, cognitio...@gmail.com
Sounds good. Thanks again for your help!
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages