You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oodt.apache.org by Cameron Goodale <go...@apache.org> on 2011/08/10 07:56:46 UTC

Mac Update HOSED Maven...AGAIN (auto update to Maven 3)

Hey Everyone,

It has been a while since I last built OODT from source, but I was testing
some of my open issues and stumbled upon this issue AGAIN.  The latest Mac
OSX updates (I am on Leopard) have once again force installed Maven 3 (this
time 3.0.3).

If you cannot even run mvn -version, you can pretty much guarantee you have
the same issue I have.  To save you sometime here is the list of commands I
used to get back to Maven 2.2.1.


cd /usr/share/
ls -la maven
lrwxr-xr-x  1 root  wheel  16 Jul 12 06:38 maven ->* java/maven-3.0.3*

sudo rm /usr/bin/mvn
sudo ln -s /usr/local/apache-maven/apache-maven-2.2.1/bin/mvn /usr/bin/mvn
mvn -version

Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_26
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"

All Fixed again.  Hope this helps someone else get back the 20 minutes I
just lost.

-Cameron