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

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 Reply to Jenkins – Jagadish Goswami Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s