I also run on OSX.. Like linux OSX usually uses bash the way to set MAVEN_HOME or any other evionment variavle would be

export MAVEN_HOME=[PATH TO MAVEN]

A lot of folk endit their bash profile, but I dont like that..

Here;s what i would (and what i do)..

1. Download maven
2. Put the directory in /Developer/Java/J2EE
3. Create a symlink to that directory (in case a newer version comes out) as follows:


sudo ln -s /Developer/Java/J2EE/maven-1.0 /Developer/Java/J2EE/Maven

4. Put the attached script in /Developer/Java/J2EE/Maven, and make sure its executable

sudo chmod +x /Developer/Java/J2EE/Maven/MavenSetup.sh

5. Symlink the script to /usr/bin

sudo ln -s /Developer/Java/J2EE/Maven/MavenSetup.sh /usr/bin/maven


now test with maven -v

The script just sets the varible you need and stops all that nasty linux user ~/.maven stuff. But sets it in ~/Library/Maven ..much nicer..







On 30 Sep 2004, at 18:36, Robert Croy wrote:

I am a newbie with Unix and Maven. I am trying to add MAVEN_HOME to my path without success. I am using MacOS X 10.3. Please help.

Robert Croy, ACTC, CCNA
Co-Coordinator, Center for Technologies in Teaching and Learning
Macintosh and Media Specialist
Office of Educational Technology
College of Education
University of Illinois
Champaign, Illinois 61820
(217)244-7005


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to