Running mvn clean install is not working

Tags: #<Tag:0x00007f0f175d2730> #<Tag:0x00007f0f175d2668> #<Tag:0x00007f0f175d25a0> #<Tag:0x00007f0f175d24b0>

Running mvn clean install on open mrs core gives the following build failure information:

C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core>mvn clean install [INFO] Scanning for projects… [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] OpenMRS [INFO] openmrs-tools [INFO] openmrs-test [INFO] openmrs-api [INFO] openmrs-web [INFO] openmrs-webapp [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building OpenMRS 2.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ openmrs — [INFO] Deleting C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\target [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs — [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core [INFO] Storing buildNumber: 21bae2 at timestamp: 1517599485659 [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core [INFO] Storing buildScmBranch: UNKNOWN [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs — [INFO] [INFO] — maven-jar-plugin:2.3.2:test-jar (default) @ openmrs — [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\target\openmrs-2.2.0-SNAPSHOT-tests.jar [INFO] [INFO] — license-maven-plugin:3.0:check (default) @ openmrs — [INFO] Checking licenses… [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ openmrs — [INFO] Installing C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\pom.xml to C:\Users\aloom.m2\repository\org\openmrs\openmrs\2.2.0-SNAPSHOT\openmrs-2.2.0-SNAPSHOT.pom [INFO] Installing C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\target\openmrs-2.2.0-SNAPSHOT-tests.jar to C:\Users\aloom.m2\repository\org\openmrs\openmrs\2.2.0-SNAPSHOT\openmrs-2.2.0-SNAPSHOT-tests.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building openmrs-tools 2.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ openmrs-tools — [INFO] Deleting C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\target [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs-tools — [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-tools — [INFO] [INFO] — maven-resources-plugin:2.4:resources (default-resources) @ openmrs-tools — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] — maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-tools — [INFO] Compiling 1 source file to C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\target\classes [INFO] [INFO] — maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-tools — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\src\test\resources [INFO] [INFO] — maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-tools — [INFO] No sources to compile [INFO] [INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ openmrs-tools — [INFO] No tests to run. [INFO] [INFO] — maven-jar-plugin:2.3.2:jar (default-jar) @ openmrs-tools — [INFO] Building jar: C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\target\openmrs-tools-2.2.0-SNAPSHOT.jar [INFO] [INFO] — maven-jar-plugin:2.3.2:test-jar (default) @ openmrs-tools — [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\target\openmrs-tools-2.2.0-SNAPSHOT-tests.jar [INFO] [INFO] — license-maven-plugin:3.0:check (default) @ openmrs-tools — [INFO] Checking licenses… [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ openmrs-tools — [INFO] Installing C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\target\openmrs-tools-2.2.0-SNAPSHOT.jar to C:\Users\aloom.m2\repository\org\openmrs\tools\openmrs-tools\2.2.0-SNAPSHOT\openmrs-tools-2.2.0-SNAPSHOT.jar [INFO] Installing C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\pom.xml to C:\Users\aloom.m2\repository\org\openmrs\tools\openmrs-tools\2.2.0-SNAPSHOT\openmrs-tools-2.2.0-SNAPSHOT.pom [INFO] Installing C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\tools\target\openmrs-tools-2.2.0-SNAPSHOT-tests.jar to C:\Users\aloom.m2\repository\org\openmrs\tools\openmrs-tools\2.2.0-SNAPSHOT\openmrs-tools-2.2.0-SNAPSHOT-tests.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building openmrs-test 2.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ openmrs-test — [INFO] Deleting C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\test\target [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs-test — [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-test — [INFO] [INFO] — maven-jar-plugin:2.3.2:test-jar (default) @ openmrs-test — [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\test\target\openmrs-test-2.2.0-SNAPSHOT-tests.jar [INFO] [INFO] — license-maven-plugin:3.0:check (default) @ openmrs-test — [INFO] Checking licenses… [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ openmrs-test — [INFO] Installing C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\test\pom.xml to C:\Users\aloom.m2\repository\org\openmrs\test\openmrs-test\2.2.0-SNAPSHOT\openmrs-test-2.2.0-SNAPSHOT.pom [INFO] Installing C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\test\target\openmrs-test-2.2.0-SNAPSHOT-tests.jar to C:\Users\aloom.m2\repository\org\openmrs\test\openmrs-test\2.2.0-SNAPSHOT\openmrs-test-2.2.0-SNAPSHOT-tests.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building openmrs-api 2.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ openmrs-api — [INFO] Deleting C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs-api — [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-api — [INFO] [INFO] — jacoco-maven-plugin:0.7.8:prepare-agent (prepare-agent) @ openmrs-api — [INFO] argLine set to “-javaagent:C:\Users\aloom\.m2\repository\org\jacoco\org.jacoco.agent\0.7.8\org.jacoco.agent-0.7.8-runtime.jar=destfile=C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\jacoco.exec,includes=org/openmrs/**” -Duser.language=en -Duser.region=US -Xmx2g [INFO] [INFO] — maven-java-formatter-plugin:0.3:format (default) @ openmrs-api — [INFO] Using ‘UTF-8’ encoding to format source files. [INFO] Number of files to be formatted: 988 [INFO] Successfully formatted: 0 file(s) [INFO] Fail to format : 0 file(s) [INFO] Skipped : 988 file(s) [INFO] Approximate time taken: 2s [INFO] [INFO] — maven-resources-plugin:2.4:resources (default-resources) @ openmrs-api — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 124 resources [INFO] [INFO] — maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-api — [INFO] Compiling 668 source files to C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\classes [INFO] [INFO] — maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-api — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 133 resources [INFO] [INFO] — maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-api — [INFO] Compiling 320 source files to C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\test-classes [INFO] [INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ openmrs-api — [INFO] Surefire report directory: C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\surefire-reports


T E S T S

Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SUCCESS [ 1.965 s] [INFO] openmrs-tools … SUCCESS [ 1.898 s] [INFO] openmrs-test … SUCCESS [ 0.721 s] [INFO] openmrs-api … FAILURE [ 15.149 s] [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.164 s [INFO] Finished at: 2018-02-02T12:25:05-07:00 [INFO] Final Memory: 56M/135M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project openmrs-api: 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 cmd.exe /X /C ““C:\Program Files (x86)\Java\jdk1.8.0_144\jre\bin\java” “-javaagent:C:\Users\aloom\.m2\repository\org\jacoco\org.jacoco.agent\0.7.8\org.jacoco.agent-0.7.8-runtime.jar=destfile=C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\jacoco.exec,includes=org/openmrs/**” -Duser.language=en -Duser.region=US -Xmx2g -jar “C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\surefire\surefirebooter6912307322649802597.jar” “C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\surefire\surefire158240200483818558tmp” “C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core\api\target\surefire\surefire_04788187090816890942tmp”” [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :openmrs-api

C:\Users\aloom\Desktop\SCHOOL FOLDERS\Software Engineering Practices\openMRS\aloomis85419\openmrs-core>

It has been successfully linked to a MySql database. I am not sure what is going on here and my group needs to know by Tuesday.

Can you paste this on pastebin.com and share the link here?

Here: https://pastebin.com/44uGS4Vq

@javamrsaloom did you figure this out?

Sorry I haven’t responded. My team switched to installing OpenMRS on a VM. We have it up and running now. Thanks for the help everyone!