PFonseca

Developer

View site on GitHub Statuses Archives

Setting environment variable on MacOSX

Update ~/. bash_profile – create this file if doesn’t exist.

$ vim ~/.bash_profile

export M2_HOME=/Users/pfonseca/apache-maven-3.1.1<br/>
export PATH=$PATH:$M2_HOME/bin<br/>
export JAVA_HOME=$(/usr/libexec/java_home)


Restart the terminal. Test it.

$ echo $M2_HOME
/Users/pfonseca/apache-maven-3.1.1

Published on 11/04/2015 at 00h17 by pfonseca, tags

If you liked this article you can follow me on Twitter

comment Setting environment variable on MacOSX


Powered by Publify