Error in setting up openmrs-core

I was try to set up the openMRS core but landed in the following error. Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project openmrs-tools: Compilation failure

Hi Ayush, Can you paste the entire output of build. Please confirm if you are on JAVA8.

@defcon you could try deleting the .m2 directory which contains maven depedencies and rerun mvn clean install and allow all dependencies to download again.

@piyush9620 : There is no .m2 directory

@swathivarkala Below is the full error : [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

if u are on windows, then its located in c:/users/urname also check if you have installed java properly and set the environment variables for java

1 Like