Jenkins container - mvn: not found in pipeline

hi friends ,

i am new to Jenkins and creating a pipeline using jenkins container. I do same things via freestyle project and everthing works well

But when it comes ot the pipeline i faced with mvn: not found

I tried many things to overcome this issue but can’t make any progress, would be appreciated for the suggestions.

How are you calling maven in your freestyle job?