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 Cheers On Tue, Jun 9, 2015 at 6:19 PM, shekhar sharma <sharmashekha...@gmail.com> wrote: > 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. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/5a87a70f-99db-4239-915c-64610bb60a3c%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/5a87a70f-99db-4239-915c-64610bb60a3c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- ----- Arnaud Héritier http://aheritier.net Mail/GTalk: aheritier AT gmail DOT com Twitter/Skype : aheritier -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAFNCU-9sV35G9aZZ1wCv095t3JAGkhKt2uVgBfn-WyWJEEZSyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.