Go to Google Chrome → localhost:8080 → Login to Jenkins
Go to Manage Jenkins on the left side of the Dashboard → then go to Manage Jenkins → Update the installed Playlist then Go to Available option → Select “Maven Integration” & “Green Balls” Plugins → Press “Install without restart”
Note: If of any of the Plugins failed, then try to install it again
Now on the download page, click on “Restart Jenkins when installation is complete & no jobs are running” → Again Login
Now again go to Dashboard → Go to Manage Jenkins → Go to Global Tool Configuration[By this tool, we can add other tools installed on our local machine] → go to Add JDK & MAVEN and do the below things >>>
NOTE:
> Make sure that you unchecked the “Install Automatically” option
> Make sure that you copied the exact path of the Tools available in your local machine
git clone url_of_the_time-tracker_repo
cd time-tracker
mvn clean package
→ It deletes the previous build artifacts and then compiles the code, runs tests, and packages the project into a distributable format like a JAR file.