On Sun, Mar 22, 2009 at 4:51 AM, Unnsse Khan <[email protected]> wrote:

> Hi Kalle,
>
> Thanks for the suggestion (I thought about the same solution before
> starting this initial thread on the mailing list)...
>
> The Apache Maven 2.1.0 working as the correct one by placing $MAVEN_HOME
> before /usr/bin in my PATH as follows:
>
> export
> PATH=$MAVEN_HOME/bin:/usr/local/bin:$PATH:/usr/local/sbin:$JAVA_HOME/bin:/opt/local/bin:$PS1:$PATH;
>
> The thing I dislike about this approach is that the previous Maven (2.0.6)
> version still exists on my machine.
>
> Prior to Maven 2.1.0, I had installed the 2.0.6 version by downloading the
> tar.gz (tarball) and then building Maven 2.0.6 by scratch which placed the
> mvn script inside my /usr/bin directory.
>
> Is there a way to truly un-install / wipe the previous mvn (2.06) version
> from my system?
>
> Many, many thanks!


"rm -rf /usr/share/maven"?

Typically, on linux and OS X, I'd expand the maven archive into a directory
(e.g.  /usr/share/maven-2.1.0) and toss in some softlinks:

tar zxvf ~/apache-maven-2.1.0.tar.gz
> mv apache-maven-2.1.0 /usr/share/maven-2.1.0
> mv /usr/share/maven /usr/share/maven-2.0.6
> ln -s /usr/share/maven-2.1.0 /usr/share/maven
>
>
Then, at some point in the future, if I decide I don't want maven 2.0.6
anymore, I wipe it.
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/

Reply via email to