Tuesday, October 12, 2010

Installing Maven on linux

What is maven?
Maven is essentially a project management and comprehension tool and as such provides a way to help with managing:
  • Builds
  • Documentation
  • Reporting
  • Dependencies
  • SCMs
  • Releases
  • Distribution
If you want to have more details about maven please refer The Philosophy of Maven and The History of Maven.

Advantages of using mavan:
  1. common build structure
  2. build best practices enforcement (shared build meme)
  3. automated build of application, from source code to pre-production platform => fast time to market with reduced risks
  4. works well with distributed teams ;-) Location doesn't matter.

Compared to Ant:

  1. Higher level of reusability between builds
  2. Faster turn around time to set up a powerful build (once you're used to Maven)
  3. Less maintenance
  4. Shared build meme. I know how to build any maven project
  5. Greater momentum: Ant is now legacy and not moving fast ahead. Maven is forging ahead fast and there's a potential of having lots of high-value tools around Maven (CI, Dashboard project, IDE integration, etc).
You can download the maven:

How to install:

create a environment variable on bash profile as
MAVEN_HOME=/installation path/apache-maven-2.2.1
Finally export it as export PATH=$MAVEN_HOME/bin:$PATH on your bash profile in Linux and source the bash profile .

You can check if maven is correctly installed by having mvn -v on terminal.