Install Maven 3 on Ubuntu 11.04
来源:互联网 发布:mysql集群架构 编辑:程序博客网 时间:2024/05/17 22:52
Install Maven 3 on Ubuntu 11.04
1. Download Maven 3 latest version
$ cd /home/<myusername>$ wget http://labs.mop.com/apache-mirror/maven/binaries/apache-maven-3.0.4-bin.tar.gztar -zxvf apache-maven-3.0.4-bin.tar.gz
2. Unpacks maven to a more appropriate directory, most people like to use / usr/local/apache-maven-3.0.4:
$ tar -xzvf apache-maven-3.0.4-bin.tar.gz -C /usr/local/
Add the Maven PATH variables to the environment file. Follwoing two lines are included to user .bashrc file located in my home directory, like /home/user1/.bashrc
MAVEN_HOME=/usr/local/apache-maven-3.0.4export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH
Recompile .bashrc by:
$ source .bashrc
To test the successful installation run the Maven version checker:
$ mvn -version
It returns something like:
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: /usr/local/apache-maven-3.0.4
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "2.6.38-11-server", arch: "amd64", family: "unix"
On RHEL5.5 redhat linux
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh ./epel-release-5-4.noarch.rpm
yum install git
wget http://labs.mop.com/apache-mirror/maven/binaries/apache-maven-3.0.4-bin.tar.gz
tar -zxvf apache-maven-3.0.4-bin.tar.gz
- Install Maven 3 on Ubuntu 11.04
- How to install Maven on Ubuntu
- Install JDK 6 on Ubuntu 11.04
- Install Cloudera CDH3 on Ubuntu 11.04 单机
- install ImageMagick on Ubuntu
- install myreview on ubuntu
- Install JDK on Ubuntu
- install mplayer on ubuntu
- install mplayer on ubuntu
- install xipmsg on ubuntu
- Install gtk2hs on ubuntu
- install ibus on Ubuntu
- Mysql Install on ubuntu
- Install sqldeveloper on Ubuntu
- Install NS2 on Ubuntu
- Install EditPlus on Ubuntu
- Install Magento on Ubuntu
- Install Ioncube on ubuntu
- 内核编译 & 模块编译
- hdu 2045 不容易系列之(3)—— LELE的RPG难题(递推)
- openGL 函数能正常执行,但是没有结果,该怎么办?方法之一
- 电影 《遗愿清单》
- 解决AcroPro缺少msi文件的错误方法
- Install Maven 3 on Ubuntu 11.04
- struts2文件下载bug
- Android屏幕元素层次结构
- onMeasure和onLayout
- android上一些方法的区别和用法的注意事项
- Android canvas的save restore translate rotate用法介绍
- 源码
- android自定义控件:可旋转View:可作为ImageView、ImageButton
- TortoiseSVN覆盖图标消失及寻回方法