Hi,
I am trying to build a metasfresh distributable from command line following procedures described in http://docs.metasfresh.org/developers_collection/en/getting_started_mvn_cmdline_en.html document.
While running build of metasfresh/de.metas.reactor I've got an error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project de.metas.migration.base: There are test failures.
[ERROR]
[ERROR] Please refer to /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base && /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java '${argLine}' -Xms256m -Xmx2048m -jar /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire/surefirebooter2021524300946757877.jar /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire 2017-11-21T11-14-54_374-jvmRun1 surefire1595626035213636341tmp surefire_04554626986173645225tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base && /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java '${argLine}' -Xms256m -Xmx2048m -jar /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire/surefirebooter2021524300946757877.jar /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire 2017-11-21T11-14-54_374-jvmRun1 surefire1595626035213636341tmp surefire_04554626986173645225tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:679)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:279)
In a dumpstream file in /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire-reports directory there is a further explanation of the above error:
Error: Could not find or load main class ${argLine}
I see there is mentioning of JaCoCo plug-in in metasfresh-parent/pom.xml file.
Should this plug-in be mentioned in mvn install command or some other solution applied?
Maven environment is as follows:
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T02:58:13-05:00)
Maven home: /home/xxxxx/.sdkman/candidates/maven/current
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.92-18.36-default", arch: "amd64", family: "unix"
Please, let me know if addition info is needed.
Thank you,
George