The new apache maven version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:
FATAL: Couldn’t find any executable in D:\current-maven
I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.
It can be fixed by creating a link with mklink on windows like
current-maven/bin> mklink mvn.bat mvn.cmd