Thursday, March 26, 2015

The Maven way ..

Hi Guys ,

This is my first post for you'll and its on Maven. When I started learning , googling it I found so many tutorials , but to understand it properly I had to actually browse so many of them. So I thought putting everything I understood with snapshots etc would help someone find everything in one place.

So Lets get started ? I will give a quick intro as to what is Maven and then we will step by step create project

Maven

What is Maven ?


  • It is a project management tool
  • It uses the concept of POM (Project Object Model) using which it can manage project’s build, dependency and documentation
  • But the most important feature is able to download project dependent libraries automatically !

Official Site => http://maven.apache.org/

Maven Installation (on Windows)

Download Maven 

Maven is distributed in several formats for your convenience. Use a source archive if you intend to build Maven yourself. Otherwise, simply pick a ready-made binary distribution and follow the installation instructions
1. You will have to go on their site and just download the maven zip out of the many stable versions listed there. So go to http://maven.apache.org/download.cgi , and download required maven as shown below.



2. Once it is downloaded , unzip the distribution archive, i.e. apache-maven-3.3.1-bin.zip to the directory you wish to install Maven. It is recommended to unzip it in  C:\Program Files\Apache Software Foundation.

3. Add the unpacked distribution's bin directory to your user PATH environment variable by opening up the system properties (WinKey + Pause), selecting the "Advanced" tab, and the "Environment Variables" button, then adding or selecting the PATH variable in the user variables with the value C:\Program Files\Apache Software Foundation\apache-maven-3.3.1\bin.



4.