Platform Version: Windows 8.1 OpenMRS Version: openmrs-core
Question: I’m trying to build openmrs-core but I keep getting this build error:
Results :
Tests in error:
WebModuleUtilTest.startModule_dwrModuleXmlshouldContainModuleInfo:160 » Module
WebModuleUtilTest.startModule_shouldCreateDwrModulesXmlIfNotExists:135 » Module
Tests run: 339, Failures: 0, Errors: 2, Skipped: 6
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenMRS ............................................ SUCCESS [ 10.344 s]
[INFO] openmrs-tools ...................................... SUCCESS [ 2.818 s]
[INFO] openmrs-test ....................................... SUCCESS [ 0.563 s]
[INFO] openmrs-api ........................................ SUCCESS [03:16 min]
[INFO] openmrs-web ........................................ FAILURE [01:24 min]
[INFO] openmrs-webapp ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:54 min
[INFO] Finished at: 2015-09-16T01:20:02-04:00
[INFO] Final Memory: 26M/473M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project openmrs-web: There are test failures.
[ERROR]
[ERROR] Please refer to D:\My Documents\3rd Year 2015-2016\CIS 399\Project\openmrs-core\web\target\surefire-reports for the individual test results.
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :openmrs-web
I’ve seen a similar thread that said to try and build without tests but that hasn’t worked either. I have eclipse 4.4.2 and java 1.8 installed. Is there something that I need to do with MySQL first in order for it to build?