Jenkins as a windows service

Maven error in Jenkins

How to fix maven error in jenkins on windows: ‘mvn’ is not recognized as an internal or external command …

If you have installed jenkins on windows and are facing this error while running maven command from your jenkins pipeline: ‘mvn’ is not recognized as an internal or external command, operable program or batch file, then the first step for you is to check whether the environment variables are setup correctly....