title: Setting Up Maven 3 properly
body: <p>How should I set up Maven 3 properly?</p>
  
  <p>My environment:</p>
  
  <ul>
  <li>Fedora Linux 16;</li>
  <li>Java 1.7.0_22</li>
  <li>Maven 3.0.4</li>
  </ul>
  
  <p>My .bash_profile</p>
  
  <pre><code># .bash_profile
  
  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
      . ~/.bashrc
  fi
  
  # User specific environment and startup programs
  
  PATH=$PATH:$HOME/.local/bin:$HOME/bin:$JAVA_HOME/bin:$M2_HOME/bin
  export PATH
  
  JAVA_HOME=/usr/java/jdk1.7.0_02
  export JAVA_HOME
  
  M2_HOME=/home/ic/apache-maven-3.0.4
  export M2_HOME
  </code></pre>
  
  <p>When I type <strong>java -version</strong>, the system shows me</p>
  
  <pre><code>java version "1.7.0_02"
  Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
  Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
  </code></pre>
  
  <p>But when I type <strong>mvn -v</strong>, it shows me:</p>
  
  <pre><code>bash: mvn: command not found...
  </code></pre>
  
  <p>What should I do, in order to set up Maven 3 properly?</p>
  
  <p>Thanks in advance!</p>