To install Maven you need to choose your OS and follow the instructions:
We could install maven using Homebrew:
brew install maven
Or we could follow the instruction [here] (https://www.mkyong.com/maven/install-maven-on-mac-osx/)
Follow the instruction [here] (https://www.mkyong.com/maven/how-to-install-maven-in-windows/)
Follow the instruction [here] (https://www.mkyong.com/maven/how-to-install-maven-in-ubuntu/)
Once Maven is installed, check the version by typing on the terminal:
mvn -version