Skip to content

Instantly share code, notes, and snippets.

@maaand
Last active August 29, 2015 14:03
Show Gist options
  • Save maaand/c8d4a323ef80d1e0cded to your computer and use it in GitHub Desktop.
Save maaand/c8d4a323ef80d1e0cded to your computer and use it in GitHub Desktop.
Install Maven using Macports on OS X 10.9 Mavericks
% 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