首页 > 系统相关 >Install Maven 3 on Ubuntu 11.04

Install Maven 3 on Ubuntu 11.04

时间:2023-03-28 14:05:49浏览次数:47  
标签:bin maven Install tar 11.04 Maven 3.0 apache


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.gz
tar -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.4
export 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


标签:bin,maven,Install,tar,11.04,Maven,3.0,apache
From: https://blog.51cto.com/u_2650279/6154712

相关文章

  • ubuntu12.04安装maven3.0.4
    ubuntu12.04安装maven3.0.4   参考链接:http://maven.apache.org/download.cgi   1,确认已经安装jdk, $java--version   2,下载apache-maven-3.0.4-bin.tar.gz 下......
  • Ubuntu 12.04 – install sun jdk 6-7
    UbuntuGNU/Linux12.04LTS(PrecisePangolin)released.IwantedtomanuallyinstalltheSunJDK6and7onUbuntu.UpdatedforUbuntuGNU/Linux13.04(RaringRi......
  • Quick install Chinese input method on Ubuntu
    QuickinstallChineseinputmethodonUbuntu7.04A.ToinstallChineseinputfcitxthroughwebupdate1.Clickapplicationprogramtabandthenclickrootterm......
  • Linux install mysql 在Linux安裝Mysql
    1.0installmysqlsudoaptpurgemysql-servermysql-commonsudoaptautoremovemysql-servermysql-commonsudoapt-getupdatesudoapt-getinstallmysql-server......
  • 入职第一天 Maven使用
     2012年11月26日,我入职了,虽然内心还是有点不舍得杭州X软的offer,但或许我是懂得感恩的人!我也是一个相信缘分的,这天我入职了,兴奋中带有不安,我甚至不知道叫前辈是名字好呢,还......
  • sogou_install
    搜狗输入法安装在系统设置里面讲键盘系统输入法改为fcitx。若无,则执行sudoaptupdatesudoapt-getinstallfcitx设置fcitx开机自启sudocp/usr/share/application......
  • eclipse 的maven安装
    eclipse安装maven插件2评/7470阅发表于:2011-01-2511:40需要EclipseIDEforJavaEEDevelopers下载网子http://www.eclipse.org/downloads/安装EclipseIDEfor......
  • #Python基础 利用Pyinstaller 模块对python代码进行打包exe
    一般我们都用 Python 的 Pyinstaller 模块进行打包,这里记录Pyinstaller 模块进行打包。一:安装 Pyinstaller 模块pipinstallPyInstaller二:打开cmd(win+R) ......
  • Installing Windows 7 on VirtualBox. Error status: 0xc0000225?
    Today,afterfinallytakingtheplungeintotheLinuxworld(I'mtryingtorefocusmyworktotheRailsecosystem),IinstalledVirtualBoxonLinuxMint13. Si......
  • Maven高级——多环境配置与应用
    多环境配置与应用 开发步骤定义多环境<!--配置多环境--><profiles><!--开发环境--><profile><id>env_dep</id><properties>......