maven安装示例

小专题:2019-06-16 – 2019-06-16

一.项目具体内容:

1.下载: wget http://mirror.bit.edu.cn/apache/maven/binaries/apache-maven-3.2.2-bin.tar.gz

2.解压: tar -zxvf apache-maven-3.2.2-bin.tar.gz

3.将文件放置到/usr/local/

   cp apache-maven-3.2.2-bin.tar.gz /usr/local/

4.配置环境变量:

   export MAVEN_HOME=/usr/local/apache-maven-3.2.2

   export PATH=$PATH:$MAVEN_HOME/bin 

5.测试:mvn -v

# mvn -v

Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T21:51:42+08:00)

Maven home: /usr/local/software/apache-maven-3.2.2

Java version: 1.7.0_67, vendor: Oracle Corporation

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

Default locale: zh_CN, platform encoding: UTF-8

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

二.参考链接:

1. RocketMQ安装:https://blog.csdn.net/shiloh_my/article/details/82977584

2.

本内容由安康学院“雨季”原创

你可能感兴趣的:(maven安装示例,其他)