Our website loads in split second powered by Schema Theme. Thanks to MyThemeShop

Maven 3.1.1- Installation on Windows

Apache Maven is a software project management tool based on Project Object Model (POM). Maven manages project building, reporting and documentation with help of powerful Maven plugins. Maven is a small binary distribution zip file. To install Maven 3.1.1 all that we need to do is download Maven, extract in some directory and configure couple of environment variables. Follow below steps for Maven 3.1.1 Installation on Windows

Apache Maven 3.1.1 Installation

1. Install Java 1.7

Install Java 1.7 from oracle and set JAVA_HOME and Path variables to point Java 1.7 installation. For more information on how to install and setup Java 1.7 on windows see here .

2. Download Apache Maven 3.1.1

Download Apache Maven 3.1.1 from official Apache Maven website http://maven.apache.org/download.cgi. Select appropriate version like e.g  apache-maven-3.1.1-bin.zip 

3. Maven 3.1.1 Installation on Windows

Apache Maven contains set of files to be extracted to some place let say c:\maven  to be used. Just folders and files, that’s all no installation required.

4. Environment Variables

  • Path

Set JAVA_HOME and Path variables to appropriate Java installation as described in this post. Set Maven related variables. Add new  MAVEN_HOME  to point Maven 3.1.1 installation folder.

MAVEN_HOME : C:\maven

Update Path  variable to point Maven bin folder, so that you can use Maven commands from command-line.

Path : MAVEN_HOME\bin;%Path%;

If you are using Maven in development or production for a large project, you may run out of memory. Set MAVEN_OPTS  to specify memory settings and other file encoding settings.

MAVEN_OPTS : -Xms256m -Xmx512m

5.Verification of Maven 3.1.1 installation

Open command prompt and issue the command  mvn -version