$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Maven Installation in Linux Mint 20 – Step-by-step

February 11, 2023 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading Maven

    Download Apache Maven 3.x Binaries

    Maven bin.tar.gz for Mint
  2. 3. Extracting Maven

    Double-Click on Archive and Extract into /tmp.


    Or from Shell:

    tar xvzf apache-maven*.tar.gz -C /tmp/
  3. 4. Installing Java

    Verify that JDK 8+ is Installed on System

    javac -version

    How to Install Recommended Oracle Java JDK on Mint

    Installing Oracle JDK for Mint
  4. 5. Installing Maven

    Installing Maven Binaries
    First, we Drop the Tarball:

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

    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    Then we Set the SuperUser as Owner:

    sudo chown -R root:root /home/[myUser]/Downloads/apache-maven*

    Finally, to Switch Maven contents:

    sudo mv /home/[myUser]/Downloads/apache-maven** /opt/

    Again 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

    Finally, Test Maven Installation with:

    mvn -v

Contents