Hi,
I’ve been trying to install OpenMRS on my computer (Ubuntu 20.04 installed alongside Windows 10) for an internship with Ace Medlock, but I’ve been running into the following errors when running mvn clean install (I have the latest version of the master branch): [INFO] Results: [INFO] [ERROR] Failures: [ERROR] UserServiceTest.getAllUsers_shouldNotContainsAnyDuplicateUsers:680 expected: <11> but was: <12> [ERROR] ModuleFactoryTest.loadModules_shouldNotStartTheLoadedModules:171 expected: <3> but was: <0> [ERROR] ModuleFactoryTest.loadModules_shouldSetupRequirementMappingsForEveryModule:153 expected: <3> but was: <0> [ERROR] Errors: [ERROR] ModuleExtensionsTest.getExtensions_shouldNotFailExpandingAnExtensionNameCausingANoClassDefinitionFoundError:96 » Module [ERROR] ModuleFactoryTest.loadModule_shouldAlwaysLoadModuleIfReplacementIsWanted:82->loadModule:185 » Module [ERROR] ModuleFactoryTest.loadModule_shouldLoadANewerVersionOfTheSameModule:95->loadModule:185 » Module [ERROR] ModuleFactoryTest.loadModule_shouldLoadModuleIfItIsCurrentlyNotLoaded:59->loadModule:185 » Module [ERROR] ModuleFactoryTest.loadModule_shouldNotLoadAnOlderVersionOfTheSameModule:107->loadModule:185 » Module [ERROR] ModuleFactoryTest.startModule_shouldStartAllDependencies:121->loadModule:185 » Module [ERROR] ModuleFileParserTest.moduleFileParser_shouldFailCreatingParserFromFileIfInputStreamClosed:88 » FileNotFound [ERROR] ModuleFileParserTest.parse_shouldParseValidLogicModuleFromFile:143 » Module Un… [ERROR] ModuleFileParserTest.parse_shouldParseValidXmlConfigCreatedFromInputStream:99 » FileNotFound [ERROR] ModuleUtilTest.expandJar_shouldExpandDirectoryWithParentTreeIfNameIsDirectoryAndKeepFullPathIsTrue:626 » NoSuchFile [ERROR] ModuleUtilTest.expandJar_shouldExpandDirectoryWithoutParentTreeIfNameIsDirectoryAndKeepFullPathIsFalse:647 » NoSuchFile [ERROR] ModuleUtilTest.expandJar_shouldExpandEntireJarIfNameIsEmptyString:665 » NoSuchFile [ERROR] ModuleUtilTest.expandJar_shouldExpandEntireJarIfNameIsNull:681 » NoSuchFile /h… [ERROR] ModuleUtilTest.expandJar_shouldExpandFileWithParentTreeIfNameIsFileAndKeepFullPathIsTrue:697 » NoSuchFile [ERROR] ModuleUtilTest.getPackagesFromFile_shouldSkipOptionalFoldersIfJarFile:741 » FileNotFound [INFO] [ERROR] Tests run: 4350, Failures: 3, Errors: 15, Skipped: 36 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for OpenMRS 2.5.0-SNAPSHOT: [INFO] [INFO] OpenMRS … SUCCESS [ 1.912 s] [INFO] openmrs-tools … SUCCESS [ 0.543 s] [INFO] openmrs-test … SUCCESS [ 0.164 s] [INFO] openmrs-api … FAILURE [06:34 min] [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] openmrs-liquibase … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 06:37 min [INFO] Finished at: 2021-02-21T12:39:03+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project openmrs-api: There are test failures.
I’ve tried to go back to previous versions using git checkout hash (as far as the end of Nov 2020), but I keep getting these errors. I set up my environment following the steps of the ‘Step by Step Installation for Developers’ .
I’d really appreciate your help with fixing these errors. With kind regards, Renske van Brummelen