Java: Maven Environment Variables on OS X
Mac OS X comes with Apache Maven preinstalled. However, you’re still going to need to set some environment variables to get up and running.
Verify that maven installed in /usr/share/maven:
Add the following line to your ~/.profile
This won’t take effect until you either reboot or open a new terminal window. You can reload the file in the current terminal window with the following command: