Showing posts with label maven-installation. Show all posts
Showing posts with label maven-installation. Show all posts

Monday, June 17, 2013

I do hear many of them say installing Maven on the machines. But maven is not a software(not a .exe file or any executable file) to be installed in Operating system. Its a tool which will simplifies the build process.

Below are the steps required to configure Maven on Machines.

Tools Required

  1. JDK 1.6
  2. 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.zip
b) 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 -version
 If 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" 

Followers

Is this helps u

Subscribe to RSS Feed