linux下maven的安裝

  • 上傳安裝包到相應路徑linux

  • 進行解壓apache

    • tar -zxvf apache-maven-3.0.5-bin.tar.gz -C /export/servers/vim

  • 修改環境變量maven

    • vim /etc/profile  spa

      • #maven
        export MAVEN_HOME=/export/servers/apache-maven-3.0.5
        export PATH=$PATH:$MAVEN_HOME/bin
    • source /etc/profileunix

  • 查看是否安裝成功code

    • mvn -versionorm

      • 顯示以下信息
        Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51:28+0800)
        Maven home: /export/servers/apache-maven-3.0.5
        Java version: 1.8.0_65, vendor: Oracle Corporation
        Java home: /export/servers/jdk1.8.0_65/jre
        Default locale: en_US, platform encoding: UTF-8
        OS name: "linux", version: "2.6.32-573.el6.x86_64", arch: "amd64", family: "unix"
相關文章
相關標籤/搜索