centos 安裝 maven

來源:互聯網
上載者:User

標籤:maven   default   source   org   home   arch   生效   nbsp   linu   

 1: 下載 maven    我採用的是  apache-maven-3.3.9-bin.tar.gz

      http://maven.apache.org/download.cgi

2:  解壓  tar –zxvf apache-maven-3.3.9-bin.tar.gz

3:  建立軟串連 ln -s apache-maven-3.3.9

4:  添加環境變數 :vim /etc/profile  

           新增內容  export MAVEN_HOME=/usr/local/maven

                     export PATH=$PATH: $MAVEN_HOME/bin

5; 使之生效 source /etc/profile

6: 查看是否安裝成功 mvn –v     如果出現下面內容則成功

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)

Maven home: /usr/local/maven

Java version: 1.7.0_67, vendor: Oracle Corporation

Java home: /usr/local/jdk1.7.0_67/jre

Default locale: en_US, platform encoding: UTF-8

OS name: "linux", version: "2.6.32-573.22.1.el6.x86_64", arch: "amd64", family: "unix"

 

centos 安裝 maven

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.