How to install Maven on Ubuntu
To install Apache Maven on Ubuntu OS, you can use the “apt-get” command.
1. Search Maven package – apt-cache search
Search the Maven package in Ubuntu with apt command – apt-cache search maven
mkyong@mkyong-desktop:~$ apt-cache search maven .... maven-ant-helper - helper scripts for building Maven components with ant maven2 - Java software project management and comprehension tool
2. Install it – apt-get install
Install Maven with command – sudo apt-get install maven2. Apt will configured Maven for you automatically.
mkyong@mkyong-desktop:~$ sudo apt-get install maven2 2 upgraded, 87 newly installed, 0 to remove and 263 not upgraded. Need to get 97.2MB of archives. After this operation, 271MB of additional disk space will be used. Do you want to continue [Y/n]? y ....download many packages, patient
3. Verification
Type “mvn -version” to verify your installation.
mkyong@mkyong-desktop:~$ mvn -version Maven version: 2.0.9 Java version: 1.6.0_0 OS name: "linux" version: "2.6.28-11-generic" arch: "i386" Family: "unix" mkyong@mkyong-desktop:~$
4. Done
If you see the above message, the Apache Maven is installed successfully.
The Apt-get installation will install all the Maven required files in the following folder structure
/usr/bin/mvn /usr/share/maven2/ /etc/maven2
P.S The Maven configuration is store in /etc/maven2






I have a Dak Tech computer with Intel Pentium 4,Ubuntu Studio 11.04,and Linux For Creative Humans.I forgot my user account user name and password.I need to know how I can bypass it or get new name and password so I can use my computer.
Another installation procedure for maven with Nexus configuration
http://www.java-tutorial.ch/ubuntu/maven-installation-and-configuration-for-ubuntu
[...] http://www.mkyong.com/maven/how-to-install-maven-in-ubuntu/ [...]
Consider this as a better alternative
http://ubuntu-answers.blogspot.com/2010/12/install-maven-on-ubuntu-linux.html
This is far from being the best way. 90Mb of archives to download??
maven is a java application, which will run on any platform. The dowload size of the binary from apache site is ~3Mb. The only thing is to unpack add the mvn script to your path.
[...] Mkyong.com. Posted on December 15, 2010 by admin. This entry was posted in From the Command Line, [...]
You are my libraries … \o/
[...] http://www.mkyong.com/maven/how-to-install-maven-in-ubuntu/ [...]
[...] Install Maven in *nix environment (Ubuntu) Article about how to install Ubuntu. [...]
[...] – How to install Maven in Windows – How to install Maven in Ubuntu [...]