Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to uninstall / override previous Maven version on OS X Leopard?

 
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

I installed Maven (by building the source) awhile ago on my OS X Leopard machine.

When I check version information, this is the feedback, I receive:

When I check where its located, this is what is outputted:


However, I recently installed the 2.10 binary (via zip extension) on my machine and set a
MAVEN_HOME global system environmental variable and also appended it to my PATH in .bash_profile.
When I run the $MAVEN_HOME/bin/mvn script from the command line, this is what is outputted:

How do I uninstall / override the Maven 2.0.6 version and replace it with Maven 2.1.0 (which is set to my $MAVEN_HOME)?
This is what my ~/.bash_profile config looks like:

Happy programming,

Unnsse
 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, I got the Apache Maven 2.1.0 working as the correct one by placing $MAVEN_HOME before /usr/bin in my PATH as follows:
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!
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A layman's guess would be:

1.) Remove the directory that contains maven 2.0.6
2.) Remove the /usr/bin/mvn
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic