Build failure and mojo exception while running mvn clean install in visual studio code

Viewed 20

I am executing mvn clean install in a terminal in visual studio code. I have written all the java jdbc code for connecting database to my java application. When I run the mvn clean install ,it is showing me build failure and mojo exception.

How can I fix this?

Thanks in advance

1 Answers

set JAVA_HOME to jdk not to JDK_DIR/jre

Related