Maven is a build management tool. It will come handy when we have lots of dependencies, we keep on updating the dependent project, complex build version management. ANT is there for long as a build tool and is popularly used in development. So why do we need Maven?
My personal choice depends on the nature of project, considering facts like below
I am writing this article now because going forward I will be using Maven to build some of the tutorial example projects instead of ANT. In that case, this tutorial might help you to setup Maven. If you are behind a proxyserver which blocks access to Maven repositories, then you have to talk to your IT admin to enable access.
I assume you have already JDK installed.
http://maven.apache.org/download.cgi is the link to download Maven. ANT and Maven both are by Apache Software Foundation.
Click and download the ‘Binary Zip’ (Ex: apache-maven-3.1.0-bin.zip) file from the ‘current stable’ version.
Maven does not uses an executable file to install. It is just a zip file. Just unzip it to a folder in the hard disk.
1. Add environment variable MAVEN_HOME to the path where you extracted the maven binary zip file.
2. Add path variable, so that we can execute ‘mvn’ command from any location in command prompt.
Verify if you have done everything right,
This JEE tutorial was added on 03/10/2013.