The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

'mvn' is not recognized as an internal or external command, operable program or batch file. ?

poovaraj
August 3, 2017

Hi Team,

I have installed Bamboo in server machine and have set maven path to system environment varaible in server.  I am getting below error message while running job from another machine (client machine). Could you pleae help me to resolve this issue.

Error Message :

C:\testing\bamboo-home\xml-data\build-dir\FOMS-TES-JOB1>mvn clean install
'mvn' is not recognized as an internal or external command,
operable program or batch file.
Failing task since return code of [MavenBatch.bat] was 1 while expected 0
Finished task 'Automation Testing Demo' with result: Failed
Running post build plugin 'NCover Results Collector'
Running post build plugin 'Artifact Copier'
Running post build plugin 'npm Cache Cleanup'
Running post build plugin 'Clover Results Collector'
Running post build plugin 'Docker Container Cleanup'
Finalising the build...
Stopping timer.
Build FOMS-TES-JOB1-32 completed.
Running on server: post build plugin 'NCover Results Collector'
Running on server: post build plugin 'Build Hanging Detection Configuration'
Running on server: post build plugin 'Clover Delta Calculator'
Running on server: post build plugin 'Maven Dependencies Postprocessor'
All post build plugins have finished
Generating build results summary...
Saving build results to disk...
Logging substituted variables...
Indexing build results...
Finished building FOMS-TES-JOB1-33.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 3, 2017

The enviornment in which the build is running does not have an execution path that includes your maven installation.  In other words, your "set maven path to system environment varaible in server" has not been done correctly

poovaraj
August 3, 2017

Thanks for your reply !

  • I have set maven path to system environment variable in bamboo installed server but I don't know how to set maven execution path ?
  • I have bamboo admin role but unable to see execution path option in bamboo tool ?  What is the user role required to set execution path ?
  • How to set maven execution path in bamboo server ?
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 4, 2017

You've said you've set the system in the installed server - that should be it.  I'd say you've made a mistake in that somewhere.

TAGS
AUG Leaders

Atlassian Community Events