While the installation guide on Apache is helpful, I decided to document the exact steps (some are not covered on the Apache site) I took to get Apache Maven installed in my machine.
Add JAVA_HOME environment variable to .bash_profile
Reload .bash_profile by running:
- Download the Apache Maven distribution archive from here.
Add the bin directory to the PATH environment variable.
In, .bashrc, add:
Reload .bashrc by running:
Type the following the confirm Maven has been installed successfully: