原文转自:jobar.iteye.com/blog/1776747

1 apt-cache search maven
获取所有可用的maven包

2 sudo apt-get install maven

开始安装 下载大约114M的东东

3 mvn --version

Apache Maven 3.0.4

Maven home: /usr/share/maven

Java version: 1.6.0_38, vendor: Sun Microsystems Inc.

Java home: /usr/lib/jvm/java-6-oracle/jre

Default locale: en_US, platform encoding: UTF-8

OS name: "linux", version: "3.5.0-22-generic", arch: "i386", family: "unix"

确认maven安装成功

4 maven被安装在这个地方

ll /usr/share/maven

total 32

drwxr-xr-x   6 root root  4096 Jan 27 19:32 ./

drwxr-xr-x 294 root root 12288 Jan 27 19:32 ../

drwxr-xr-x   2 root root  4096 Jan 27 19:32 bin/

drwxr-xr-x   2 root root  4096 Jan 27 19:32 boot/

lrwxrwxrwx   1 root root    10 May 28  2012 conf -> /etc/maven/

drwxr-xr-x   2 root root  4096 Jan 27 19:32 lib/

drwxr-xr-x   2 root root  4096 Jan 27 19:32 man/

5 配置文件在这里

ll /etc/maven/

total 32

drwxr-xr-x   2 root root  4096 Jan 27 19:33 ./

drwxr-xr-x 145 root root 12288 Jan 27 19:33 ../

-rw-r--r--   1 root root   184 Jan 21  2012 m2.conf

-rw-r--r--   1 root root 10224 Jan 21  2012 settings.xml

lubuntu安装maven的更多相关文章

  1. CentOS安装Maven

    现有的一个项目使用了Maven来管理,源代码放到了Subversion中.虽然Maven管理项目很方便,但是部署起来还是很麻烦的.先要在本地生成项目jar包,上传到服务器,然后再重启服务.如果在服务器 ...

  2. 安装maven编译环境

    安装maven编译环境 1.默认已经装好yum并配置好yum源(推荐使用163yum源) 2.安装JDK 3.安装相关依赖环境(root用户登陆) yum install -y cmake lzo-d ...

  3. Ubuntu杂记——Ubuntu下Eclipse安装Maven问题

    转:在线安装maven插件问题:Cannot complete the install because one or more required items could not be found. 使 ...

  4. 【Maven】Eclipse安装Maven插件后导致Eclipse启动出错

    本文纯属复制粘贴:具体请参照原文: Eclipse安装Maven插件后,Eclipse启动问题:Maven Integration for Eclipse JDK Warning.  解决方法: 1. ...

  5. eclipse安装maven

    maven3 安装: 安装 Maven 之前要求先确定你的 JDK 已经安装配置完成.Maven是 Apache 下的一个项目, 首先去官网下载 Maven: 下载完成之后将其解压,解压后的文件夹重命 ...

  6. CentOs下安装maven

    现有的一个项目使用了Maven来管理,源代码放到了Subversion中.虽然Maven管理项目很方便,但是部署起来还是很麻烦的.先要在本地生成项目jar包,上传到服务器,然后再重启服务.如果在服务器 ...

  7. 安装Maven

    下载进入官网下载页面:http://maven.apache.org/download.html我用的是windows,下载apache-maven-3.2.5-bin.zip: Maven 3.2. ...

  8. 总结eclipse中安装maven插件

    当自己越来越多的接触到开源项目时,发现大多数的开源项目都是用maven来够建的.并且在开发应用时,也越来越意识到maven的确会解决很多问题,如果你要了解maven,可以参考:Maven入门指南(一) ...

  9. centos 安装maven

    1.环境: 操作系统:centos7 maven:apache-maven-3.3.9-bin.tar.gz 2.安装JDK(1.7) 3.安装maven mkdir -p /opt/usr/loca ...

随机推荐

  1. Linq to SQL只支持SQL Server(所选对象使用不支持的数据提供程序)

  2. IE6下Png透明最佳解决方案(推荐) Unit PNG Fix

    引自:http://www.yeeyan.org/articles/view/98510/67784 网络上解决IE6下Png透明解决方案有很多,例如 IE PNG Fix from TwinHeli ...

  3. ie各个版本hack

    /*类内部hack:*/ .header {_width:100px;} /* IE6专用*/ .header {*+width:100px;} /* IE7专用*/ .header {*width: ...

  4. java中substring和indexof() 和lastindexof()

    java中substring和indexof() 和lastindexof() str=str.substring(int beginIndex);截取掉str从首字母起长度为beginIndex的字 ...

  5. StyleCop 安装

    下载安装 官方网站:http://stylecop.codeplex.com/ 下载安装 如果自定义了安装路径请保证这个文件的AssemblyFile 属性正确的指向了StyleCop.dll所在的目 ...

  6. JS获取日期和时间

    //获取日期和时间 function showDate(){ var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFul ...

  7. @class的基本使用

    2-@class 的基本使用 1, @class的作用 @class 允许简单的引用类,即类的声明.告诉编译器,后面代码中可能会使用到的类名. 好比函数声明一样. 2, #import的作用 与 #i ...

  8. DBHelper 数据库帮助类

    /// <summary> /// 数据库帮助类 /// <author>vito</author> /// </summary> public cla ...

  9. fastjson的坑 com.alibaba.fastjson.JSONObject cannot be cast to xxx

    解析json对象时,使用了new TypeReference()对象 fastjson会对解析的对象类型进行缓存   new TypeReference<ResultData>(){}   ...

  10. 03_JqueryAjax_异步请求Servlet

    [Ajax 简述] jquery对Ajax提供了更方便的代码:$ajax({ops})来发送异步请求. 首先说一个Ajax的特性,它是永安里发送异步请求,请求的是服务器,但不会刷新页面. 例如在注册功 ...