How to handle Maven MojoExecutionException?

Viewed 34

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project Oauth2SinglesignOn: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

This is the error I got while creating a java application in NetBeans. There is no syntax errors shown. I got error on execution.

1 Answers

You need to set JAVA_HOME to jdk not to JDK_DIR/jre, See this question for how to set the value Refer this SO Link also.

Related