How to Install Latest Apache Maven on Kali Linux Easy Guide

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

Maven 3.x Kali Linux - Setting Up

  1. Relocate Maven Binaries
    Login as SuperUser:

    su 

    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:

    exit
  2. Add Maven Binaries to User Path

    nano $HOME/.bashrc

    Append:

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

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

    Load New SetUp:

    source $HOME/.bashrc

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