Jenkins builds configured with Maven understands how Maven works and what is required in terms of execution. It uses
pom.xml to set up and create package files from the source files.
Now, let's perform steps to create and configure a new build job. Go to the Jenkins dashboard and click on New Item.
Go through all the available options of the types of jobs we can create. In our case, let's create a freestyle project for a demo:
PetClinic, then select Freestyle project. Now click on OK to continue: