OPENMRS-API FAILURE with maven .

ubuntu 14.04

Question: I am using jdk 8 and the latest pull from master but i am getting openmrs-api failure. please help !

Tests run: 3094, Failures: 0, Errors: 1, Skipped: 29

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SUCCESS [3.647s] [INFO] openmrs-tools … SUCCESS [1.369s] [INFO] openmrs-test … SUCCESS [0.224s] [INFO] openmrs-api … FAILURE [4:59.333s] [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:04.947s [INFO] Finished at: Sun Aug 23 17:45:09 IST 2015 [INFO] Final Memory: 57M/455M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project openmrs-api: There are test failures. [ERROR] [ERROR] Please refer to /home/siddharth/git/openmrs-core/api/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 -rf :openmrs-api

@rogerkint i don’t know why these tests fail, but you can successfully build using maven clean install -DskipTests=true. This is what i have always been doing since i noticed this problem. Still waiting for a fix.

You can see here that all tests passed on master - https://ci.openmrs.org/browse/TRUNK-MASTER and here - https://travis-ci.org/openmrs/openmrs-core So it is likely to be a local problem, than problem with code in master.

@sunbiz Maybe but its a randomly happening to a lot of people.

Which is the failing test?

1 Like
  1. What version of OpenMRS Platform are you trying to build? (You didn’t mention it above.)
  2. As @dkayiwa mentioned, we will need to find out which test(s) failed in order to be of much help in troubleshooting. The error message you provided has the instructions to find the individual test results.
  3. I am going to close this specific topic as it seems to be a duplicate of the one you already posted here: