Hello Friends,
This is one of my tutorial for installation of Maven on windows. Maven is a software project management tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information. Maven is an open source community and is a part of the Apache Software Foundation. The following instructions will guide you how to install Maven on Windows:- First, download the compressed zip file for the installation. Since it is open source it is easily downloadable from the internet. Then follow the steps below.
1) Unpack the archive where you like to store the contents of the file, eg: unzip maven-2.0.zip
2) A directory called “maven-2.0” will be created (Here 2.0 is the version, it may vary).
3) Add the path of the bin directory of maven to your PATH in Environment Variables. You can do that from command prompt by using following command or you can directly set it from properties of My Computer.
set PATH=”c:program filesmaven-2.0bin”;
And you can also set the path for MAVEN_HOME in the Environment Variables.
4) One thing make sure that JAVA_HOME user variable is set to the location of your JDK version installed on your system.
5) Run “mvn –version” to verify that it is correctly installed.
6) Now go to the bin folder and there you will see one batch file mvn.bat, run that file by double clicking it. This will create a Repository for all the project associated with Maven.
7) To check whether the repository is created or not, go to the Documents and Settings folder in C: drive and there you will see the user’s folder with the name of the user/administrator of that particular system. Check out the snap below, this will give you the clear idea.
Hope this will help you.
Thanks,
Nikhil.