How-to Install Latest Apache Maven on Kali Linux Easy Guide

April 13, 2017 | By thelinuxevangelist | Filed in: Tutorial.

Maven 3.x Quick-Start on Kali

Hello Kali User! The Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Apache Maven 3.x on Kali 32/64-bit GNU/Linux Desktop.

Sure that the Apache Maven is also in the Kali Apt Repositories, but if You want to Get Installed Right the Latest Maven Release then Follow this Tutorial…

The Apache Maven 3 SetUp Require a Working Java JDK 8+ Installation, so You will Find Link to Installing Oracle Java JDK on Kali.

A Project Management Tool such as Maven provides a Superset of features found in a Build Tool.

But in Addition to providing Build capabilities, Maven can also Run Reports, Generate a Web Site, and Managig Communication among members of a Working Team.

Quick-Start with Apache Maven on Kali - Featured
  1. Download Apache Maven 3.x Binaries:

    Maven bin.tar.gz for Kali
  2. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Quick-Start with Apache Maven on Kali - Open Terminal
    Or LogIn into Shell…
  3. Double-Click on Archive and Extract into /tmp

    Or from Shell:

    tar xvzf apache-maven*.tar.gz -C /tmp/
  4. Verify that JDK 8+ is Installed on System

    java -version

    How-to Install Recommended Oracle Java JDK on Kali:

    Install Oracle JDK 7/8 for Kali
  5. Relocate Maven Binaries
    Login as SuperUser:


    If Got “User is Not in Sudoers file” then Look: Solution

    rm /home/[myUser]/Downloads/apache-maven*bin.tar.gz

    Set the SuperUser as Owner:

    chown -R root:root /tmp/apache-maven*

    Then Switch Contents with:

    mv /tmp/apache-maven* /opt/

    To achieve the SuperUser session:

  6. Add Maven Binaries to User Path

    nano $HOME/.bashrc


    export PATH=$PATH:/opt/apache-maven-[X.Y.X]/bin

    Ctrl+X to Save and Exit from “nano” :)

    Load New SetUp:

    source $HOME/.bashrc
  7. Test Maven Installation

    mvn -version
  8. Quick-Start with Maven Projects Management:

    Maven Quick-Start Guide
  9. Quick-Start with Eclipse Java Developers on Kali Linux: SetUp Eclipse for Java on Kali.

Tags: , , , , , , , , , , ,