Follow on Google News News By Tag Industry News News By Location Country(s) Industry News
Follow on Google News | How to install Maven on Linux with Johnathan Mark SmithJohnathan Mark Smith will show you how to install Maven on Linux
By: JohnathanMarkSmith.com I am going to show you how I install Maven on Fedora, CentOS, Red Hat or Scientific Linux you can do it the same way or find a better way. Download Maven and untar it. 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/ su -c "tar -zxvf apache-maven- 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/ # Add the following lines to maven.sh export M2_HOME=/opt/ export M2=$M2_HOME/ 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 If you did everything right your output should look something like the one below: Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; Maven home: /opt/apache- Java version: 1.7.0_19, vendor: Oracle Corporation Java home: /usr/lib/jvm/ Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-358.2.1.el6.i686" Now that’s it. have fun with maven. You can watch the video at: http://www.youtube.com/ If you have any questions or comments please email me at john@johnathanmarksmith.com End
|
|