To configure Jenkins with Maven:
On the Jenkins dashboard, go to Manage Jenkins, and select Configure System
Scroll down until the Maven section is seen, and then go to Add Maven
Uncheck the ‘Install automatically’ box
Add any name for the setting and the location of the MAVEN_HOME
After saving, one can create a job with the ‘Maven project’ option