Forked from SQiShER/UpdateEnvironmentPlist.sh
Last active
September 18, 2015 14:42
-
-
Save cici/359057880d66204c2c41 to your computer and use it in GitHub Desktop.
Two simple commands to resolve problems with Maven installed via Homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaults write ~/.MacOSX/environment.plist M2_HOME `brew --prefix maven`/libexec | |
| defaults write ~/.MacOSX/environment.plist M2 `brew --prefix maven`/libexec/bin |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I also did
export M2=
brew --prefix maven/libexec/binexport M2_HOME=
brew --prefix maven/libexecso that I could use maven in my open shell.