How to install Maven on Mac OS Mojave using Homebrew

Profile picture for user devraj
Submitted by devraj on

Maven is a build automation tool used primarily for Java projects. Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system and Linux. To install maven on Mac OS, use below command:

$ brew install maven

To check Maven is successfully installed, type below command:

$ mvn --version