Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Installing Maven 3.0.4 on Ubuntu 12.04

DZone's Guide to

Installing Maven 3.0.4 on Ubuntu 12.04

To install Apache Maven 3.0.4 on Ubuntu 12.04, take the following steps.

· Java Zone
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

To install Apache Maven 3.0.4 on Ubuntu 12.04, take the following steps:

  • Get Maven 3.0.4 binary distribution using the following command:
    wget http://www.gtlib.gatech.edu/pub/apache/maven/binaries/apache-maven-3.0.4-bin.tar.gz 
  • Unpack the binary distribution using the following command:  
        tar -zxf apache-maven-3.0.4-bin.tar.gz  
  • Move uncompressed "apache-maven-3.0.4" directory to the /usr/local directory using this command: 
        sudo cp -R apache-maven-3.0.4 /usr/local  
  • Create a symbolic link to /usr/bin using the following command:
        sudo ln -s /usr/local/apache-maven-3.0.4/bin/mvn /usr/bin/mvn  
  • Verify for correct installation using the following comman:
        mvn –version  
    It should print the following information:
    Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530)
    Maven home: /usr/local/apache-maven-3.0.4
    Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
    Java home: /usr/lib/jvm/jdk-6u32/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux", version: "3.2.0-27-generic", arch: "amd64", family: "unix"

 

Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.

Topics:
java ,apache maven ,ubuntu

Published at DZone with permission of Pavithra Gunasekara, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}