This thread elsewhere on SO might help.
Jenkins looks for the mvn
binary under $M2_HOME/bin/
.
The ws/trunk
in your logs suggests M2_HOME
is pointing to $WORKSPACE
:
(in directory "<http://localhost:8090/job/bbc/ws/trunk")
But usually $WORKSPACE
is a file path, not a url.
All of which is to say, double check both your M2_HOME
and WORKSPACE
env variables.
The M2_HOME
in particular is confusing since Jenkins lets you defined it at both instance and job level.