I need some clarification on how to install the latest version of maven. When I run this command on a new Ubuntu 16.04 server machine (I haven't installed maven yet) I get the following message:
vagrant@vagrant:~$ mvn
The program 'mvn' is currently not installed. You can install it by typing:
sudo apt install maven
But I see other forum posts saying to install "maven3". So my question is what is the difference between apt-get install "maven" and "maven3"? Does "maven" install an older version or does this just point to whatever the latest version is? Should I just use "maven3" instead?
If this helps, I am writing this script to set up a new developer workstation on Ubuntu 16.04, starting from scratch.