码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS6.x maven安装教程

时间:2014-10-18 03:08:04      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:liunx

  1. 下载maven

  2. 官网:

    下载地址http://maven.apache.org/download.cgi

  3. 解压

    tar -zxvf apache-maven-3.2.3-bin.tar.gz

  4. 安装

    cp apache-maven-3.2.3 /usr/local/maven

    cd usr/local/maven

    ln -s /usr/local/apache-maven/-3.2.3 maven_default

    cd /usr/sbin

    ln -s /usr/local/maven_default/bin/mvn mvn

  5. mvn -v


    Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T04:58:10+08:00)

    Maven home: /usr/local/maven/maven_default

    Java version: 1.8.0_25, vendor: Oracle Corporation

    Java home: /usr/local/jdk1.8/jre

    Default locale: zh_CN, platform encoding: UTF-8

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

    说明成功

本文出自 “落寞” 博客,请务必保留此出处http://qinheng.blog.51cto.com/8764944/1565333

CentOS6.x maven安装教程

标签:liunx

原文地址:http://qinheng.blog.51cto.com/8764944/1565333

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!