Maven Installations and configurations

Step 1: Go to the link below download the maven file.

http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz

Step 2: Just extract the file and put it in the D drive or where ever you want.

Step 3: Now go to the command prompt,

and type mvn and you will get as follows,

Because we haven’t set the maven path.

Step 4:

Now set the path as follows and you will get the output as follows,

set M2_HOME=D:\apache-maven-3.0.4 (path of our maven extracted file)

set PATH=%PATH%;%M2_HOME%\bin 

%PATH% to maintain the already set paths.

Note: do not put semicolon at the end of set path statement, because of semicolon at the end you might not get the output sometime.

Now we can work with maven.

 

Thanks for reading this post………..!!!

Leave a Reply