Install Maven on Ubuntu
What
is Maven?
Maven
is a project management and comprehension tool.
Developer
point of view Maven provides for developers a complete build
lifecycle framework.
Maven
provides developers ways to manage following:
*
Builds
*
Documentation
*
Reporting
*
Dependencies
*
Releases
*
Distribution
*
mailing list
Install
Maven
331
sudo apt-get update
332
sudo apt-get install maven
Verification
$
mvn -version
Once
run the above command, you will get the below out put
---------------------------------------------------------------------------------
Apache
Maven 3.0.4
Maven
home: /usr/share/maven
Java
version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java
home: /usr/lib/jvm/j2sdk1.5-sun/jre
Default
locale: en_US, platform encoding: UTF-8
OS
name: "linux", version: "3.5.0-23-generic", arch:
"i386", family: "unix"
You
can see as per the above out put Maven home is on “/use/share/maven”.
Run
the below list commands and check the out puts.
$ls
-ls /usr/share/maven
$ls
-ls /etc/maven