Installing Maven 3.0.5 in RedHat Linux -


can me installing maven 3.0.5 in linux please?

i tried using wget, yum , tar command. commands saying not recognized external or internal command , blank how achieve it. need go start->cmd , apply these commands??

and please tell me how set environment variable. please me.

thanks in advance.

the first thing need download maven tar file , untar shared location on 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 maven environment variables in shared profile. next step setup maven environment variables in shared profile users on system them import @ login time.

su -c "vi /etc/profile.d/maven.sh"  # add following lines maven.sh export m2_home=/opt/apache-maven-3.0.5 export m2=$m2_home/bin path=$m2:$path  

now test install of maven. logout of system , log it. enter following command:

[jsmith@regan ~]$ mvn -version  

if did right output should 1 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" 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -