Skip to content

Instantly share code, notes, and snippets.

@SQiShER
Created May 17, 2012 16:46
Show Gist options
  • Save SQiShER/2720113 to your computer and use it in GitHub Desktop.
Save SQiShER/2720113 to your computer and use it in GitHub Desktop.
Two simple commands to resolve problems with Maven installed via Homebrew
defaults write ~/.MacOSX/environment.plist M2_HOME `brew --prefix maven`/libexec
defaults write ~/.MacOSX/environment.plist M2 `brew --prefix maven`/libexec/bin
@hbgwhite
Copy link

Thanks! This just solved my problem!

@shar-kumar
Copy link

I just downloaded maven zip file and extracted to my local folder in mac.
maven commands are not recognized in mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment