Saturday, May 11, 2013

How-to Install Apache Maven 3 on Mac OS X Easy-Visual Guide

The Guide Show How-to Install and Getting-Started with the Latest Apache Maven 3 Java Project Management & Build Tool for Mac OS X 32/64bit Desktop.

The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut Easier to Read & Digest ;)

Apple on Cloud
  1. Download Latest Apache Maven 3 Binaries:

    Maven 3 bin.tar.gz
  2. Double-Click on Archive and Extract Maven3 Binaries
  3. Open a Terminal Window
  4. Relocate Maven3 Binaries
    sudo su
    mv </path/to>/apache-maven-3* /opt
  5. Check if Java is Installed
    java -version
  6. Setup Maven3 Path and Environment Variables
    su <userName>
    nano ~/.profile
    Insert Something Like:
    export M3_HOME=/opt/apache-maven-3.0.4
    export M3=$M3_HOME/bin
    export PATH=$M3:$PATH
    export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/<1.X.Y.jdk>/Contents/Home
    export PATH=$JAVA_HOME/bin:$PATH
    

    Load New .bashrc SetUp

    source ~/.profile
  7. Test Maven3 Installation
    mvn -version

    If you Get the Maven Version the Apache Maven3 has been Successfully Installed on Your Mac System :)