安装maven在linux
2014-02-24 17:35
239 查看
The first thing we need to do is to download the Maven tar file and untar it to a shared location on the workstation
If you did everything right your output should look something like the one below: 成功应该看到以下信息
The first thing we need to do is to download the Maven tar file and untar it to a shared location on the workstation
wget http://mirrors.gigenet.com/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz 下载包 su -c "tar -zxvf apache-maven-3.0.5-bin.tar.gz -C /opt/" 解压命令
Setup the Maven Environment Variables in shared profile.
The next step is to setup the Maven environment variables in a shared profile so all users on the system will get them import at login time.su -c "vi /etc/profile.d/maven.sh" 创建maven.sh文件添加下面内容 # Add the following lines to maven.sh export M2_HOME=/opt/apache-maven-3.0.5 export M2=$M2_HOME/bin PATH=$M2:$PATH
Now test your install of Maven.
Logout of the system and then log back into it. Enter the following command: 退出系统,然后重新登录[jsmith@regan ~]$ mvn -version 查看maven版本
If you did everything right your output should look something like the one below: 成功应该看到以下信息
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51:28-0500) Maven home: /opt/apache-maven-3.0.5 Java version: 1.7.0_19, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-358.2.1.el6.i686", arch: "i386", family: "unix"
相关文章推荐
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断
- 谁是桌面王者?Win PK Linux三大镇山之宝
- vivi下重新调整分区
- Linux VS Unix:Linux欲一统天下 Unix不死
- linux下设定环境变量
- Linux下修改MySQL编码的方法
- Linux串口通信
- 从Windows系统下访问Linux分区相关软件