Re: 'mvn.bat' is not recognized as an internal or external command
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 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=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- 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/CAPiUgVf5PhbSVmKNTw8_Kn%3Deo2r_Ky-uNdNANuBSmv2_ToQh%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
'mvn.bat' is not recognized as an internal or external command
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. For more options, visit https://groups.google.com/d/optout. Started by user anonymous Building in workspace C:\Users\Shesharm\.jenkins\workspace\DataDrivenFramework C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url https://github.com/shesharm/ddf_Shekhar # timeout=10 Fetching upstream changes from https://github.com/shesharm/ddf_Shekhar C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10 C:\Program Files (x86)\Git\cmd\git.exe -c core.askpass=true fetch --tags --progress https://github.com/shesharm/ddf_Shekhar +refs/heads/*:refs/remotes/origin/* C:\Program Files (x86)\Git\cmd\git.exe rev-parse refs/remotes/origin/master^{commit} # timeout=10 C:\Program Files (x86)\Git\cmd\git.exe rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 1919b5aa87a6c8482893afed90e7cdead9d28cb0 (refs/remotes/origin/master) C:\Program Files (x86)\Git\cmd\git.exe config core.sparsecheckout # timeout=10 C:\Program Files (x86)\Git\cmd\git.exe checkout -f 1919b5aa87a6c8482893afed90e7cdead9d28cb0 C:\Program Files (x86)\Git\cmd\git.exe rev-list 1919b5aa87a6c8482893afed90e7cdead9d28cb0 # timeout=10 [DataDrivenFramework] $ cmd.exe /C 'mvn.bat -f C:\Workspace\MySampleMavenProj\pom.xml -Dmaven.repo.local=C:\Users\Shesharm\.jenkins\workspace\DataDrivenFramework\.repository test exit %%ERRORLEVEL%%' 'mvn.bat' is not recognized as an internal or external command, operable program or batch file. Build step 'Invoke top-level Maven targets' marked build as failure Sending e-mails to: sharmashekha...@gmail.com ERROR: 534-5.7.14 https://accounts.google.com/ContinueSignIn?sarp=1scc=1plt=AKgnsbvI3 534-5.7.14 Y3Y8cUnMScr-BVNj5HvSW5zRbWlV3taKSDqGjYXQeY-weQXo0n9EVOSAXXUfv5-QhogxKf 534-5.7.14 4Szesii6T-BUI4CM-tUqm1Do3jAW699RhlXKrWxNRWavv_w05v5SbEVarkH86LLxsZPba3 534-5.7.14 TbMfSOvH0QhFgNrAMWIiS1O2HwaShJvqEAvObMAj0uYcDBvAYL7YqvnxaALNtm72XrYDhl 534-5.7.14 42eShlw-m4h-YmFcxb3X5qahG3Ko Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 fs16sm6074433pdb.12 - gsmtp javax.mail.AuthenticationFailedException: 534-5.7.14 https://accounts.google.com/ContinueSignIn?sarp=1scc=1plt=AKgnsbvI3 534-5.7.14 Y3Y8cUnMScr-BVNj5HvSW5zRbWlV3taKSDqGjYXQeY-weQXo0n9EVOSAXXUfv5-QhogxKf 534-5.7.14 4Szesii6T-BUI4CM-tUqm1Do3jAW699RhlXKrWxNRWavv_w05v5SbEVarkH86LLxsZPba3 534-5.7.14 TbMfSOvH0QhFgNrAMWIiS1O2HwaShJvqEAvObMAj0uYcDBvAYL7YqvnxaALNtm72XrYDhl 534-5.7.14 42eShlw-m4h-YmFcxb3X5qahG3Ko Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 fs16sm6074433pdb.12 - gsmtp at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809) at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669) at javax.mail.Service.connect(Service.java:317) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at javax.mail.Transport.send0(Transport.java:194) at javax.mail.Transport.send(Transport.java:124) at hudson.tasks.MailSender.execute(MailSender.java:121) at hudson.tasks.Mailer.perform(Mailer.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Finished: FAILURE
Re: 'mvn.bat' is not recognized as an internal or external command
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. Vincent, You were right that ver 3.2.x has mvn.bat. So, I have downgraded the version to 3.2.x and configured all the required paths in env variable as well as in jenkins. But no luck. :( Please find the screen shot of jenkins config and let me know if i am missing something there or need to update something else. Thanks. On Tuesday, 9 June 2015 21:49:14 UTC+5:30, shekhar sharma 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/dca69914-4b4c-4979-893b-ef769d6ed8d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: 'mvn.bat' is not recognized as an internal or external command
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=emailutm_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.
Re: 'mvn.bat' is not recognized as an internal or external command
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 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 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=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- 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/CAPiUgVf5PhbSVmKNTw8_Kn%3Deo2r_Ky-uNdNANuBSmv2_ToQh%2BQ%40mail.gmail.com https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVf5PhbSVmKNTw8_Kn%3Deo2r_Ky-uNdNANuBSmv2_ToQh%2BQ%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- 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/CAH-zGCgYHxB%2B38SiMRX4akoN%3Dfp_QmqcNMNXxnA%2B5byirDPHZw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.