How-to-install Maven on Mac OSX

Source: Internet
Author: User

After the upgrade of Mac OS X Mavericks, Maven is removed (no idea why). So, you have the to install it manually.
**2.1–download Maven**download The Maven, for example apache-maven-3.1.1-bin.tar.gz
. Extracts it,

-xvf apache-maven-3.1.1-bin.tar.gz$pwd/Users/mkyong/apache-maven-3.1.1

2.2–set Maven command in environment variable.
Update ~/. Bash_profile–create this file if doesn ' t exist.

$ vim ~/.bash_profile~/.bash_profileexport M2_HOME=/Users/mkyong/apache-maven-3.1.1export PATH=$PATH:$M2_HOME/bin

Restart the terminal. Test it.

$MVN-versionApache Maven3.1. 1(0728685237757ffbf44136acec0402957f723d9a; -- the- -  at: A: A+0800) Maven Home:/users/mkyong/apache-maven-3.1. 1Javaversion:1.7. 0_05, Vendor:oracle Corporationjava home:/library/java/javavirtualmachines/1.7. 0. Jdk/contents/home/jredefault Locale:en_us,Platformencoding:utf-8OS Name:"Mac OS X",version:"10.9", Arch:"x86_64", Family:"Mac"

1.http://www.mkyong.com/maven/install-maven-on-mac-osx/

How-to-install Maven on Mac OSX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.