setup maven on mac

indeed nothing is special, but this post is about to remind me about the steps i followed to get my mac box with maven and jdk 1.5.

my requirements -

1. maven – 2.0.7
2. jdk 1.5
3. set maven bin to PATH variable.

i had 10.4.10 osx version.

to configure jdk 1.5 (jdk 1.4 is set as default jdk):

cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo rm CurrentJDK
sudo ln -s 1.5 CurrentJDK

to configure maven:

download maven binaries, copy it in your preferred location.
in my case i had it in – /Applications/java/maven-2.0.7/bin/ here.

execute following line -

vi ~/.bash_profile

change PATH with following value -

PATH=/usr/local/bin:/Applications/java/maven-2.0.7/bin/:$PATH

test your configuration -

java -version
it should say – java version “1.5.0_0x”
mvn -version
it should say – Maven version: 2.0.7

thats all will make your maven and jdk 1.5 environment up and running.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

my tweets

 

October 2007
S S M T W T F
« Sep   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Flickr Photos



@kamalapur over bridge

@kamalapur station

cox's bazaar trip oct 09

cox's bazaar trip oct 09

More Photos
Follow

Get every new post delivered to your Inbox.