Jenkins Maven installation setup

Step 1: Download and Setup Maven
Maven's official website is Apache Maven . If you click on the link given, you can open the home page of Maven's official website, as shown in the figure below.

Browse the site, go to the files section and download the linked binary .zip file.

Once the file is downloaded, unzip the file to the relevant application folder. For this purpose, the Maven files will be placed in D:\worksp\yiibai.com\apache-maven-3.3.9

Step 2: Setup Jenkins and Maven
From the Jenkins Dashboard (home screen), select Manage Jenkins in the left menu. Open the URL: http://localhost:8080/jenkins

Then, click "Manage Jenkins" from the right.

Then click "Configure System", the result is as shown below:

Scroll through the Configure System screen until you see the Maven section, then click the 'Add Maven' button.
Uncheck the "Install automatically" option.
Add a name and set the location of MAVEN_HOME.
Then, click the "Save" button at the end of the screen.

 

Now, it is possible to create a job with the 'Maven project' option. In the Jenkins Dashboard, click the New Project option.

 

After completion, it will look like the following picture:

 

 
 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326271221&siteId=291194637