If you use Homebrew on OS X and you come across the error below, just:
- $ rm -rf /usr/local/Cellar/maven
- $ brew install maven
- $ mvn -version
- That’s it!
$ brew install maven
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (caskroom/cask, caskroom/versions).
Warning: maven-3.5.0 already installed, it's just not linked.