How do i build a github cloned openmrs-core

**Application Name:*Platform Version Number: 2.0.1 Question: I cloned openmrs-core from github and i want to build it but when i ran the command mvn clean install openmrs-sdk:run ,it result to this error message [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SKIPPED [INFO] openmrs-tools … SKIPPED [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:58 min [INFO] Finished at: 2016-12-03T11:17:13+00:00 [INFO] Final Memory: 16M/55M [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix ‘openmrs-sdk’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException.

@harisu, Please use “mvn clean install” command

Try building using the command @swathivarkala posted above.

If in any case the build still fails, try this command: mvn clean install -DskipTests

@swathivarkala it fails with the following error when i use the specified command

INFO] Compiling 1 source file to /home/harisu/Desktop/openmrs-core/tools/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: javac: invalid target release: 1.8 Usage: javac use -help for a list of possible options

[INFO] 1error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SUCCESS [26:03 min] [INFO] openmrs-tools … FAILURE [08:06 min] [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 34:10 min [INFO] Finished at: 2016-12-05T18:17:47+00:00 [INFO] Final Memory: 21M/232M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project openmrs-tools: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] javac: invalid target release: 1.8 [ERROR] Usage: javac [ERROR] use -help for a list of possible options [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-tools

@themoonraker13 I have thesame error in either case.

didn’t really looked at your error but i believe this could help you How do I set up my development system? .

@harisu you need to compile using Java 8

1 Like

@dkayiwa Thanks worked using the command @swathivarkala gave after insalling java 8

2 Likes