Last active
August 29, 2015 14:03
-
-
Save maaand/c8d4a323ef80d1e0cded to your computer and use it in GitHub Desktop.
Install Maven using Macports on OS X 10.9 Mavericks
This file contains 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
% sudo port selfupdate; | |
% sudo port upgrade outdated; | |
% sudo port install maven3; | |
% sudo port select --set maven maven3; | |
— add following to .zshenv -- start using zsh if you dont — | |
set -a | |
[[ -d /opt/local/share/java/maven3 ]] && | |
M3_HOME=/opt/local/share/java/maven3 && | |
M2_HOME=/opt/local/share/java/maven3 && | |
MAVEN_OPTS="-Xmx1024m" && | |
M2=${M2_HOME}/bin | |
set +a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment