Linux installation maven

Source: Internet
Author: User

1. Download apache-maven-3.1.0-bin.tar.gz

mkdir maven
chmod 755/maven

2. Unzip TAR-ZXVF apache-maven-3.1.0-bin.tar.gz

3. Set Global variables Vim/etc/profile

m2_home=/opt/maven/apache-maven-3.2.1
Export M2_home
Path= $PATH: $M 2_home/bin
Export PATH

Executive Source/etc/profile

4. Test MVN-V Display

Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 10:15:32+0800)
Maven Home:/home/fuyuanming/maven
Java version:1.7.0_91, Vendor:oracle Corporation
Java Home:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91/jre
Default LOCALE:ZH_CN, Platform Encoding:utf-8
OS name: "Linux", Version: "2.6.32-573.8.1.el6.i686", Arch: "I386", Family: "Unix"

The above prompts indicate that the installation was successful

Linux installation maven

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.