Go to Manage Jenkins
Go to Tools
Find Maven Installation
Set the path of Maven where Maven is installed:
Run this command mvn --version
Output: Lyk this /usr/share/maven
copy the path and place in maven installation