I am trying to install Maven on Linux as I have extracted tar file also in my directory where I wanted to and also setup the environment variables but when I check mvn --version then it complains mvn:command not found. Can anybody tell me reason.
All of these variables you should set in .bashrc
or corresponding file. This way you will have them set for each bash/terminal/shell opened. Try also to go into $M2_HOME/bin
directory and run the maven from there. ./mvn --version
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.