title: Switch maven version - mvn command does not get bound
body: <p>I'm trying to switch maven from 2 to 3 (on Linux) using:</p>
  
  <pre><code>sudo update-alternatives --set mvn /path/to/maven3/bin/mvn
  </code></pre>
  
  <p>Anyway <code>mvn -v</code> still gives version 2, so I always have to execute <code>/path/to/maven3/bin/mvn</code> to use maven. How can I rebind the mvn command to the appropriate maven path?</p>