Getting up and running with Maven.
Trying to build a project I\'ve inherited. I\'ve resolved majority of the issues but am now seeing a weird error:
This happened to me when doing:
brew upgrade
It automatically updated my maven version to 3.3.3 that seems to have some issues as I was getting exactly the same message as the original post.
My solution was:
brew uninstall maven // to get rid of 3.3.3
brew install homebrew/versions/maven32 // to install maven
brew pin homebrew/versions/maven32 // to prevent unintended upgrade
And then make sure you have a line like this on ~/.bash_profile pointing to the correct maven path:
export M2_HOME=~/usr/local/Cellar/maven32/3.2.5 ~/.bash_profile