Apache Maven - Installation
Apache Maven is an innovative software project management tool, provides new concept of a project object model (POM) file to manage project’s build, dependency and documentation. The most powerful feature is able to download the project dependency libraries automatically.
We will show you how to install Apache Maven 3 on Ubuntu 12.
We will show you how to install Apache Maven 3 on Ubuntu 12.
- Searching for Maven Package
In a terminal, run apt-cache search maven to get all the available Maven package. The maven package always comes with latest Apache Maven.$ apt-cache search maven .... libxmlbeans-maven-plugin-java-doc - Documentation for Maven XMLBeans Plugin maven - Java software project management and comprehension tool maven-debian-helper - Helper tools for building Debian packages with Maven maven2 - Java software project management and comprehension tool
- Installing Maven Package
Run the below command to install the latest Apache Maven.$ sudo apt-get install maven
- Verifying Maven Installation
Run the below command to verify installation.$ mvn -version Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_09, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.5.0-17-generic", arch: "amd64", family: "unix"
- Location of Maven after Installation
Maven is installed in the directory /usr/share/maven.$ls -l /usr/share/maven total 16 4 drwxr-xr-x 2 root root 4096 Feb 7 01:28 bin 4 drwxr-xr-x 2 root root 4096 Feb 7 01:28 boot 0 lrwxrwxrwx 1 root root 10 Feb 28 2012 conf -> /etc/maven 4 drwxr-xr-x 2 root root 4096 Feb 7 01:28 lib 4 drwxr-xr-x 2 root root 4096 Feb 7 01:28 man
Maven configuration files are stored in /etc/maven
$ls -l /etc/maven total 16 4 -rw-r--r-- 1 root root 184 Feb 7 2012 m2.conf 12 -rw-r--r-- 1 root root 10224 Feb 7 2012 settings.xml
Comments
Post a Comment