"mvn -version" not returning the version
<p>I am trying to install maven on Ubuntu using the following steps :  </p>

<ol>
<li>user$ wget <a href="http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz" rel="nofollow">http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz</a></li>
<li>user$ tar -zxvf apache-maven-3.3.9-bin.tar.gz </li>
<li>user$ export PATH=/usr/local/apache-maven-3.3.9/bin:$PATH</li>
</ol>

<p>on doing<br>
user$ echo $PATH</p>

<p>cli returns : 
/usr/local/apachemaven3.3.9/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games</p>

<p>but on executing </p>

<p>user$ mvn -version</p>

<p>cli returns :
The program 'mvn' can be found in the following packages:</p>

<ul>
<li>maven</li>
<li>maven2</li>
</ul>

<p>Try: sudo apt-get install </p>

<p>Is any step missing here ? </p>

<p>JAVA_HOME is already set :</p>

<p>user$ echo $JAVA_HOME</p>

<p>/usr/lib/jvm/java-8-oracle</p>