Hii Friends,
Setting up Maven in fedora is really simple if you know how to do it. This post is for people who is new to Maven and to those who haven't set up Maven before.
There is only Few Steps you have to follow to set up Maven in fedora.
1. Download Maven 3.0.4 (Binary tar.gz) from here. http://maven.apache.org/download.html
2. Extract the tar.gz file and get the path of the directory.
E.g. - /home/vinu/software/apache-maven-3.0.4
go to the bash profile [vinu@localhost ~]$ vi .bash_profile
Add the M2_HOME after the JAVA_HOME in the bash_profile
export JAVA_HOME=/home/vinu/software/Compressed/jdk1.7.0_09
export M2_HOME=/home/vinu/software/apache-maven-3.0.4
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$JAVA_HOME/bin:$M2_HOME/bin
export PATH
4. And don't forget to Source the bash profile
[vinu@localhost ~]$ source .bash_profile
Okiii we are done setting up Maven :) just to check whether it works properly type this in the terminal
[vinu@localhost ~]$ mvn --version
Hope you get something similar to this
Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530)
Maven home: /home/vinu/software/apache-maven-3.0.4
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: /home/vinu/software/Compressed/jdk1.7.0_09/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.3.4-5.fc17.x86_64", arch: "amd64", family: "unix"
hahah thats all ..........................
Its really Simple :) if u guys have any questions or any thing feel free to put a comment
Have Fun friends.