title: how to clean maven completely in Ubuntu-14.04
body: <p>I am using Ubuntu-14.04,maven-3.2.3,mahout-0.9,hadoop-2.2.0.                                                                I am new to maven. I have tried to run mahout on hadoop. That time i got en error like unable to find hadoop-core-2.2.0 for mahout-core-0.9. So I searched and found a key as that i need to mentioned mahout classpath that relate to hadoop. So i changed path of mahout by using "export" in open terminal(Not inside any of .bashrc or /etc/profile like). From that i cant run mahout and maven.I cant found the environment path which i changed. I tried the following,  </p>
  
  <pre><code>mansoor@mansoor:~$ mvn --version
  The program 'mvn' can be found in the following packages:
   * maven
   * maven2
  Try: sudo apt-get install &lt;selected package&gt;
  </code></pre>
  
  <p>So i tried with both the things</p>
  
  <pre><code>mansoor@mansoor$ sudo apt-get install maven ( maven2)  
  </code></pre>
  
  <p>if i tried to install newly , i got the following,</p>
  
  <pre><code> mansoor@mansoor:~$ mvn -v
  Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
  Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  Could not find the main class: org.codehaus.classworlds.Launcher.  Program will exit.
  </code></pre>
  
  <p>I removed both maven's and i tried </p>
  
  <pre><code>$ mvn -v / and with (--version) 
  </code></pre>
  
  <p>again i got the same error like following,</p>
  
  <pre><code>The program 'mvn' can be found in the following packages:
   * maven
   * maven2
  Try: sudo apt-get install &lt;selected package&gt;
  </code></pre>
  
  <p>I tried new installation after used</p>
  
  <pre><code>sudo apt-get remove maven(maven2) 
  </code></pre>
  
  <p>with maven packages which is downloaded from Apache site.
  That time also i got the same error.</p>
  
  <p>I checked all path and environment variables that i know like bellow,</p>
  
  <pre><code>mansoor@mansoor:~$ which mvn
  mansoor@mansoor:~$ which maven
  mansoor@mansoor:~$ which maven2
  mansoor@mansoor:~$ whereis mvn
  mvn:
  mansoor@mansoor:~$ whereis maven
  maven:
  mansoor@mansoor:~$ whereis maven2
  maven2:
  mansoor@mansoor:~$ sudo gedit ~/.bashrc
  ==&gt; Here there is no maven variable mentioned 
  mansoor@mansoor:~$ sudo gedit ~/.bash_profile
  mansoor@mansoor:~$ sudo gedit /etc/profile
  /usr/bin$ ls
  ==&gt; here also no maven 
  /usr/share$ ls
  ==&gt; here also no maven
  </code></pre>
  
  <p>Everything was empty that mean there is no maven. I dont know how to clean maven completely and reinstall it newly.
                                                                                              Can anyone help me to resolve this?</p>