Below are the steps required to configure Maven on Machines.
Tools Required
- JDK 1.6
- Maven 3.0.5
Configuring JDK
Install JDK and set the "JAVA_HOME" variable in Windows Environment and point to JDK folder.
a) Download Maven from Maven Site . Select the version you desired to download.
e.g apache-maven-3.0.5-bin.zipb) Extract the zip file to any of the drives let take it as C drive. That it, Installation is not required.
c) Configure M2_HOME in Windows environment, point it to Maven folder.
d)Update path variable with "Maven bin folder path". With this you can run maven commands everywhere on the machine.
e)Now verify whether the Maven is configured properly or not by running below command on command prompt.
mvn -versionIf you see below meesage on command prompt, then maven got installed properly.
E:\Tools\IDEs\eclipse-jee-indigo-SR2-win32\eclipse> mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530)
Maven home: C:\PROGRA~1\Apache Software Foundation\apache-maven-3.0.4
Java version: 1.7.0_03, vendor: Oracle Corporation
Java home: C:\PROGRA~1\Java\jdk1.7.0_03\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
No comments:
Post a Comment