I’m trying to install maven through the terminal by following these instructions.
So far I got this:
export M2_HOME=/user/apple/apache-maven-3.0.3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
export JAVA_HOME=/usr/java/jdk1.6.0_22
Where do you go to find this?
OS X prior to Mavericks (10.9) actually comes with Maven 3 built in.
If you’re on OS X Lion, you won’t have java installed by default. Run
javaby itself and it’ll prompt you to install it.Assuming qualifications are met, run
mvn -versionand see some output like this: