Re: 'mvn.bat' is not recognized as an internal or external command

2015-06-09 Thread Slide
Did you setup the Maven information in the global config? Also, are you running the commands on the command line as the same user that Jenkins is running under? On Tue, Jun 9, 2015 at 9:19 AM shekhar sharma sharmashekha...@gmail.com wrote: I have configured a maven project with Jenkins. But

'mvn.bat' is not recognized as an internal or external command

2015-06-09 Thread shekhar sharma
I have configured a maven project with Jenkins. But while doing build now it is failing with the error attached in text file. Even though Maven is configured correctly and i am able to run the same project from command window with the commands 'mvn test'. Please help if anybody have any idea.

Re: 'mvn.bat' is not recognized as an internal or external command

2015-06-09 Thread shekhar sharma
Thank you all, for taking time to look into this and for the suggestions. 1. It is freestyle job only. 2. Yes, I am able to run the same maven command(mvn test) from cmd window and projects runs fine. 3. Yes, I am using the local installation and MAVEN_HOME and path are configured correctly. 4.

Re: 'mvn.bat' is not recognized as an internal or external command

2015-06-09 Thread Arnaud Héritier
It seems your are relying on a locally installed maven distribution. Your Jenkins probably doesn't have the same %PATH% than your shell. Try to give it the absolute path to your installation Advice : Use the Maven installer and runner (in a freestyle job) provided by Jenkins to simplify your life

Re: 'mvn.bat' is not recognized as an internal or external command

2015-06-09 Thread Vincent Latombe
If you run maven 3.3.x the wrapper is named mvn.cmd now, I don't think the mvn build step has been updated accordingly. Use mvn 3.2.x or use the regular batch command line as a workaround. Vincent 2015-06-09 18:20 GMT+02:00 Slide slide.o@gmail.com: Did you setup the Maven information in