I had the same problem...export PATH=$PATH:<maven directory/bin> && mvn 
clean test solved my problem


On Wednesday, April 29, 2015 at 12:55:21 AM UTC+5:30, Erick Macedo wrote:
>
> Hi,
>
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
>
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
>
> The plugin is properly connecting the remote machine, as for testing in 
> the "Exec command" I include the command "ifconfig" and the same printed 
> data from the remote machine.
>
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins 
> is the created, not the remote machine.
>
> Something very strange.
>
> Someone could help me?
>

-- 
Disclaimer: This e-mail and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended addressee, or the person 
responsible for delivering it to them, you may not copy, forward disclose 
or otherwise use it or any part of it in any way. To do so may be unlawful. 
If you receive this e-mail by mistake, please advise the sender immediately.

-- 
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/6293456d-6086-4952-8af3-a4cbd7bc61f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to