Can anyone help me with this issue? It seems that when I run mvn -v command from command line directly from windows the command works as expected.
When I run mvn -v command from Jenkins build I got the following error.
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
JAVA_HOME env is set to : C:\Program Files\Java\jdk1.8.0_144\bin I also tried without \bin but it's not working. %JAVA_HOME% is added also in Path
Thanks.