I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands
- export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.5 [Then pressed Enter]
- export M2=$M2_HOME/bin [Then pressed Enter]
- export PATH=$M2:$PATH [Then pressed Enter]
After that I typed
mvn --version
and it displayed all the necessary information but after closing the terminal, again I typed the command mvn --version
then it said that 'mvn' is not recognized
The program 'mvn' can be found in the following packages:
* maven
* maven2
Try sudo apt-get install <selected-page>
is there a way to permanently add a PATH variable in Ubuntu?