maven centos 安裝

來源:互聯網
上載者:User

標籤:

目錄:

一.環境

1.1 系統內容

1.2軟體版本

二. 安裝

2.1 下載軟體

2.2 安裝

三.驗證


本文

一.環境

1.1 系統內容

[[email protected] ~]$ lsb_release -aLSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID: CentOSDescription:    CentOS release 6.6 (Final)Release:        6.6Codename:       Final[[email protected] ~]$ uname -aLinux gtproxy-pa-1 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

1.2 軟體版本

apache-maven-3.2.5

二.安裝

2.1 下載軟體

官網地址 http://maven.apache.org/

連結:http://pan.baidu.com/s/1sjwu0sl 密碼:e48s

2.2 安裝

2.2.1 安裝目錄 /usr/local/apache-maven-3.2.5

        解壓到此目錄即可。

2.2.2 修改設定檔 /etc/profile

         修改之前請備份

export MAVEN_HOME=/usr/local/apache-maven-3.2.5export PATH=$PATH:$MAVEN_HOME/bin

2.2.3 修改立即生效

 source /etc/profile

   

三 驗證

[[email protected] ~]# mvn -versionApache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00)Maven home: /usr/local/apache-maven-3.2.5Java version: 1.6.0_45, vendor: Sun Microsystems Inc.Java home: /usr/local/jdk1.6.0_45/jreDefault locale: en_US, platform encoding: UTF-8OS name: "linux", version: "2.6.32-504.el6.x86_64", arch: "amd64", family: "unix"

 



maven centos 安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.