You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Robert Croy <bo...@uiuc.edu> on 2004/09/30 18:36:45 UTC
MAVEN_HOME to path
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: MAVEN_HOME to path
Posted by Mark Lowe <ma...@boxstuff.com>.
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..