How To Install Maven On Windows - Beginner Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone this is a very basic and you know beginner tutorial on how to install maven on windows server so we'll go step by step and this is a very you know basic and beginner tutorial as I told you so if you are new to maven and you want to know how to install maven on windows for the very first time just follow the steps so the number one step is we have to check if maven is already installed right so how do we check that you have to go to command prompt and you have to type MV n space - version right sorry for the type words version right so I'll go to my command prompt I am just going to search and I say CMD I open my command prompt and here I will say MV n space - version ok now you can see it is saying MV n is not recognized as an internal or external command right so that means either maven is not installed on my system or I have not set the environment variables right so if you get some message here showing you the maven number and you know the maven home path that that means maven is already installed and you do not have to do anything else right but if you get the same error or the same message then just follow this we go to step number two and step two is download maven from internet right so I am just going to Google and I'll say download maven right so the very first option that you will get in the search result maven download apache maven click here and it will take you to the apache maven website right so you can see this is their website where you have all the information about maven and they have shown the system requirements so you can have a look here if you want and what we are interested in in this section files where we have all this zip files for maven right I am taking this binary zip archive file I'll click on this link and you can see the maven has installed right there I have got a zip folder here I'll just go to my download section where they say folder is OK so I can see my zip folder for Apache maven I have to unzip it right I will just extract this folder and here I can select the directory where I want to extract this file right you can extract it to anywhere on your system but I will prefer to do to extract it in C program files because that is where most of the software's are you know the installations are done so just to keep consistency I am going to C and Program Files and I say ok so this folder will be extracted to see Program Files I say extract and it has extracted my Apache maven to c program files and you can see my apache maven folder has come here right ok so I'll close my downloads folder and go back to the steps so we have done this we have downloaded me over from Internet step3 with that we did was extract the zip file okay now if I go to my command prompt again and type the same command MV in space - version I am still getting M VN is not recognized as an internal or external command ok I have maven on my system but still I have not told my system where my maven is set up right where where the folder is so I have to set the environment variables right so I'll have step number 4 is to set environment variables right and we have to set the following environment variables one is M to underscore home then we have to set maven underscore home and we have to add the maven path into the path variable right now how do we set it let us go to folders now you can see this PC here it will be my computer in most of the cases I just click right click here go to properties and I get this system folder window I go to advanced system settings you have you can see environment variable side to come to this window you can have you know various methods you can directly go to system properties by you know searching on the search panel or you can do whatever I did from my computer and go to environment variables here now here we have to set under the system variables we have to set our m to underscore home and maven underscore home right so I click on new and I give the variable name as M to underscore home and the value will be the question of the folder where your maven is right so in my case I have extracted it here c program files apache maven three three nine right so i will copy this path and i will just paste it here and i say okay so you can see em to underscore home is set here ii system variable is maven and ass go home right so I say maven underscore home and this also has to go to the same value the location of my maven folder and I say ok so you can see now I have set em to underscore home as well as me underscore home right now they can be a quotient why do we want to set both of these and set the same value right so the reason I have done this is idly m to underscore home should suffice my need but some programs also look at maven and try to find maven and try to find the variable maven underscore home so that's why I just to keep safe I have added both the variables now the third thing is I have to edit the path variable so find the path variable which will already be existing in your system and go to edit now be very careful you do not have to delete anything which is already there you have to go to the end of this line whatever is written in variable value text box give a semicolon and make sure it's a it's a semicolon right not a comma and after semicolon you have to give the location of your maven bin folder so wherever your maven is go inside that and inside your maven folder you will have a bin folder and this location is what you have to give here right at the end of path variable I am just copying it ok and also you can keep a semicolon at the end just for you know future appending to this value now there's one more thing one more way I can give here right you can see this section right see Program Files Apache maven 339 this particular section or this particular you know text I can replace by percent hem to underscore home percent so what I am trying to tell the system is you have to take the path whatever is mentioned inside M to underscore home and after that you have to go to bin right so either I can give an absolute path or I can mention like this the advantage of mentioning path like this is whenever I make change in m to underscore home I will not have to make change again here whatever path will be there in M to underscore home it will be referring from here right so I just click OK and ok again ok right now I have done all these steps step 5 will again be check again if a one is installed right so the same way go to your command prompt and maven space hyphen version and click enter now you can see still it is not able to recognize MV n right we have done all the things we have downloaded the file we have extracted it set the environment variables but still it cannot access it right the reason is because this command ROM that I have opened is maintained in the same session and it does not know that I have made some changes in the system variables right so I have to exit it from here and I will open my command prompt again okay so I'm going and I will open command prompt again and now I will again say and V n space - version its version and now you can see my maven is installed it is showing me the name and the version which is also showing me the Maven home path and if you are getting the same message that means maven is installed right so this is how a very simple and basic way to install them even on Windows hope you like it bye bye
Info
Channel: Automation Step by Step
Views: 55,334
Rating: undefined out of 5
Keywords: maven, windows, beginner tutorial, apache maven, how to install maven, how to install maven on windows, step by step maven installation
Id: K9U-5aa8VwE
Channel Id: undefined
Length: 11min 10sec (670 seconds)
Published: Fri Jun 24 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.