1.Run the wget command from the dir you want to extract maven too.

wget http://mirrors.cnnic.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

2.run the following to extract the tar,

tar xvf apache-maven-3.3.9-bin.tar.gz

3.move maven to /usr/local/apache-maven

mv apache-maven-3.3.9  /usr/local/apache-maven

4.Next add the env variables to your ~/.bashrc file

export M2_HOME=/usr/local/apache-maven
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

5.Execute these commands

source ~/.bashrc

6.Verify everything is working with the following command      

mvn -version

 

最新文章

  1. SSH新学
  2. Thinkphp模板怎么使用自定义函数
  3. Android SQLite 的简单实例
  4. SDP协议分析
  5. 使用ndk standalone工具链来编译某个平台下的库
  6. 前端/html5效果收藏
  7. 树莓派.系统.修改声音输出通道(auto,hdmi,耳机接口)
  8. 自学Zabbix3.8-可视化Visualisation
  9. 使用Java High Level REST Client操作elasticsearch
  10. crontab定时作业
  11. 一个基于JRTPLIB的轻量级RTSP客户端(myRTSPClient)——实现篇:(六)RTP音视频传输解析层之音视频数据传输格式
  12. HQL语句的3个小技巧
  13. Java 里如何实现线程间通信
  14. Ionic Js十四:浮动框
  15. 【BZOJ 2724】 2724: [Violet 6]蒲公英 (区间众数不带修改版本)
  16. 使用python的logging模块(转)
  17. NIOS II 软件程序固化的相关知识
  18. ACM-ICPC (10/19)
  19. IOS设计模式浅析之桥接模式(Bridge)
  20. WPF绑定数据源之RelativeSource

热门文章

  1. AJAX-----06XMLHttpRequest对象的处理返回的XML类型数据
  2. JQuery基础二
  3. Linux应用程序访问字符设备驱动详细过程【转】
  4. SSH 无密码远程执行脚本
  5. css width="100" style ="width:100px" 区别
  6. python--数据清洗
  7. 微信小程序文件作用域模块引用
  8. 文件上传和下载(可批量上传)——Spring(二)
  9. 学习mongo系列(四) find().pretty() remove() 查询
  10. angular directive scope