title: Maven 3.0.4 installation to Ubuntu mvn not found
body: <p>I tried to install Maven to Ubuntu but something goes wrong.</p>
  <p>I downloaded Maven and untarred it to folder <code>/usr/local/apache-maven/apache-maven-3.0.4.</code>
  Then I added these rows to /etc/environment.</p>
  <blockquote>
  <p>export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.4</p>
  <p>export M2=$M2_HOME/bin</p>
  <p>PATH=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$JAVA_HOME:$JRE_HOME:$M2:$PATH&quot;</p>
  </blockquote>
  <p>But when I try to verify my installation by <code>mvn --version</code> I get this message</p>
  <blockquote>
  <p>'The program 'mvn' can be found in the following packages:  * maven  *
  maven2 Try: sudo apt-get install '</p>
  </blockquote>
  <p><strong>SOLVED.</strong> Sorry that if forget to reply to this. I added export rows to ~/.bashrc and after that it started to work.</p>