Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins needs to know where your Maven is installed

Jenkins runs into error while locating "maven" folder, for Maven type project:

Jenkins needs to know where your Maven is installed. Please do so from the system configuration.

Just about the place where pom.xml location is to be mentioned.

like image 360
Abhijeet Avatar asked Aug 08 '16 05:08

Abhijeet


People also ask

Where is Maven installed in Jenkins?

In the Jenkins dashboard (Home screen), click Manage Jenkins from the left-hand side menu. Then, click on 'Configure System' from the right hand side. In the Configure system screen, scroll down till you see the Maven section and then click on the 'Add Maven' button.

Where Maven is installed?

Window --> Preferences --> Maven --> Installations. Click Add. Click in Directory and point to maven directory installed, for example: c:\<Maven path>\apache-maven-3.6. 3 .

How do you check if Maven is correctly installed?

Once Maven is installed, you can check the version by running mvn -v from the command-line. If Maven has been installed, you should see something resembling the following output. If you see this output, you know that Maven is available and ready to be used.


1 Answers

As stated in the above answer, you need to set-up maven in Global Tool Configuration. Name your Maven & check the install automatically option. Jenkins will automatically install Maven before building the projectenter image description here

like image 75
Aarish Ramesh Avatar answered Oct 14 '22 16:10

Aarish Ramesh