How To Install Maven On Ubuntu?

What Is Maven?

" Maven is a build automation tool used primarily for Java projects. Maven addresses two aspects of building software: First, it describes how software is built, and second, it describes its dependencies. "


Apache Maven describes it as: 
"Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."


Install Maven On Ubuntu:

Installing Maven is quite easy. Just copy & paste the following commands.

sudo apt-get update
sudo apt-get install maven

It will take a while(~ 50Mb) to download it.

To check whether you have  successfully installed or not type this to get the version of Maven.
mvn -v


I just took some screenshots with maven installed.





If you want dive into Maven, grab this free e-book "Maven - The Complete Reference " by O'Brien.