The solution for later versions of Maven is straight-forward. I am on OS X ElCap, 10.11.6 and upgraded to Maven 3.3.9. I had the same problem with error "Could not find ...org.codehaus.plexus...
". The link provided here offered the solution in a comment by McKamey - simply delete M2_HOME (unset M2_HOME
). Once I tried that, it all worked as expected.
This can be confirmed by visiting the Maven install page
: "Add the bin directory of the created directory apache-maven-3.3.9 to the PATH environment variable" -- no mention of M2_HOME or M3_HOME at all.