Jenkins – Installing Maven on Windows and configuring variables

Posted: September 4, 2018 in Jenkins

Maven is  tool that can be used for building and managing any Java-based project.

Go to download page and download zip archive to some folder.

Install Java SDK

Capture.PNG

1.png

In environment variables,under system variables click new for value name set M2_HOME for Variable value path where maven zip file is located

2.PNG

In System variables, edit Path variable and add Maven\bin path

1

Do the same for JAVA

Capture.PNG

Under User variables click path-edit and type %M2_HOME%\bin

3.PNG

again, same for java

5.PNG

open CMD and type mvn -v

you should see something as in picture below

6.PNG

Configuring Jenkins for Git,Maven,Java

In Jenkins dashboard click Global Tool configuration

1

If  not already, install JAVA

Set JAVA SDK path

Capture

Git-https://git-scm.com/downloads

1

and Maven (installed in last post)

4

Comments
  1. […] and Maven (installed in last post) […]

    Like

Leave a comment