Translate

jueves, 4 de junio de 2015

Maven Install Windows 8 and 8.1

In this tutorial I will show you how to install maven on windows, configure required environment variables and how to test if the install was done correctly

Go to maven download page descargar maven and select de .zip file:



Unzip the downloaded file wherever you want, in my case, drive e:\







To be able to use maven we need to create (if not already did) tow environment variables: MAVEN_HOME  PATH

On Windows 8.1 can be done this way:

Open Contro panel and select All Control Panel Item


Click on System

Click Advance system settings on the left panel

 




In M2_HOME we write the path where we unzipped maven file

M2_HOME = e:\apache-maven-3.3.3


Then we need to edit (create if not exist) our Path variable:

If the variable dosen´t exist, we can make this:

PAHT = %M2_HOME%\bin


%M2_HOME% tells PATH to search for M2_HOME value and use it for its own route the same as we had write PAHT = p:\apache-maven-3.3.3\bin but in a more flexible manner

If already have PAHT created, just add ';' at the end and then your route.  Eg:

PAHT = varible1;varible2;%M2_HOME%\bin



Troubleshooting

You better check you got Java JDK  installed and y JAVA_HOME environment variable created 

If you don´t have it, install JDK and configure JAVA_HOME variable the same way. e.g.:

 JAVA_HOME = C:\Archivos de programa\Java\jdk1.7.0_17


Checking Installation

Open cmd/console and type mvn -version, we will get something like this:

Enjoy


Luxant

About Luxant

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.