Discussion:
Installing Maven on Mac OS X
Ricky
2008-11-23 16:55:14 UTC
Permalink
Hi,

I am trying to install maven on my mac book, Mac OS X. when i do mvn, it
runs alright; but when i try to do :

mvn archetype:generate .. it gives build failure... My guess is that i am
missing some steps, can someone point me to either a URL or guide me through
the steps for installing this on mac os x. I already have installed maven on
vista and XP before ... but kinda new to mac os x ... any help would be
appreciable,

--
Regards
Vyas, Anirudh
|| ॐ ||
Wendy Smoak
2008-11-23 17:00:31 UTC
Permalink
In order to help, we need to know what steps you took and what error
message you're getting.

I believe OS X ships with Maven 2.0.6, so if you haven't gotten it
completely switched over to (I assume) 2.0.9, the archetype:generate
goal will not be available as Archetype 2 requires at least 2.0.7.

What is the output of "mvn -v" ? Of "echo $M2_HOME" ?
--
Wendy
Post by Ricky
Hi,
I am trying to install maven on my mac book, Mac OS X. when i do mvn, it
mvn archetype:generate .. it gives build failure... My guess is that i am
missing some steps, can someone point me to either a URL or guide me through
the steps for installing this on mac os x. I already have installed maven on
vista and XP before ... but kinda new to mac os x ... any help would be
appreciable,
--
Regards
Vyas, Anirudh
Ricky
2008-11-24 16:12:28 UTC
Permalink
Wendy,

Thanks for replying. I think you are right ...

I get this error that saying :
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-3 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-2 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-1 as it requires Maven
version 2.0.7
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Required goal not found: archetype:generate
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Nov 24 11:10:04 EST 2008
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
anirudh-vyas-macbook:~ anirudh$

when i do mvn -v i get version 2.0.6 ... what should i do?
Post by Wendy Smoak
In order to help, we need to know what steps you took and what error
message you're getting.
I believe OS X ships with Maven 2.0.6, so if you haven't gotten it
completely switched over to (I assume) 2.0.9, the archetype:generate
goal will not be available as Archetype 2 requires at least 2.0.7.
What is the output of "mvn -v" ? Of "echo $M2_HOME" ?
--
Wendy
Post by Ricky
Hi,
I am trying to install maven on my mac book, Mac OS X. when i do mvn, it
mvn archetype:generate .. it gives build failure... My guess is that i am
missing some steps, can someone point me to either a URL or guide me
through
Post by Ricky
the steps for installing this on mac os x. I already have installed maven
on
Post by Ricky
vista and XP before ... but kinda new to mac os x ... any help would be
appreciable,
--
Regards
Vyas, Anirudh
|| ॐ ||
--
Regards
Vyas, Anirudh
|| ॐ ||
Wendy Smoak
2008-11-24 16:17:51 UTC
Permalink
Post by Ricky
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
...
Post by Ricky
when i do mvn -v i get version 2.0.6 ... what should i do?
Set M2_HOME to your new Maven install, and make sure $M2_HOME/bin is
on your PATH before the directory where the default mvn lives.

http://maven.apache.org/download.html#Installation
--
Wendy
Gabriel Garcia
2008-11-24 16:22:05 UTC
Permalink
Rick,

Apart from Wendy's instructions, you can also install Maven with tools
that'll make it just work for you:

I use Maven with Mac OS X 10.5 (Leopard) and Maven 2.0.9 without a
problem, but I I used darwinports: http://darwinports.com/ (a simple
sudo port install maven2 would install it in /opt, all you need to do
is add /opt/local/bin to your PATH in your profile). Fink
(http://www.finkproject.org/) also has it, but its latest Maven
version is 2.0.7, whilst darwinports's is 2.0.9.

Good luck with either suggestion,


Gabriel
Post by Wendy Smoak
Post by Ricky
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
...
Post by Ricky
when i do mvn -v i get version 2.0.6 ... what should i do?
Set M2_HOME to your new Maven install, and make sure $M2_HOME/bin is
on your PATH before the directory where the default mvn lives.
http://maven.apache.org/download.html#Installation
--
Wendy
---------------------------------------------------------------------
Ricky
2008-11-25 13:29:56 UTC
Permalink
Hey Guys,

I did an export on environment variables and the maven version changed and
worked fine. Thanks for your help, appreciate it. Gabriel, what is mac
ports ... i have been hearing some stuff about it, just curious if you
don't mind my asking...
Post by Gabriel Garcia
Rick,
Apart from Wendy's instructions, you can also install Maven with tools
I use Maven with Mac OS X 10.5 (Leopard) and Maven 2.0.9 without a
problem, but I I used darwinports: http://darwinports.com/ (a simple
sudo port install maven2 would install it in /opt, all you need to do
is add /opt/local/bin to your PATH in your profile). Fink
(http://www.finkproject.org/) also has it, but its latest Maven
version is 2.0.7, whilst darwinports's is 2.0.9.
Good luck with either suggestion,
Gabriel
Post by Wendy Smoak
Post by Ricky
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
...
Post by Ricky
when i do mvn -v i get version 2.0.6 ... what should i do?
Set M2_HOME to your new Maven install, and make sure $M2_HOME/bin is
on your PATH before the directory where the default mvn lives.
http://maven.apache.org/download.html#Installation
--
Wendy
---------------------------------------------------------------------
---------------------------------------------------------------------
Gabriel Garcia
2008-11-25 13:44:43 UTC
Permalink
darwinports is a package manager for the mac. You can read all about
it in the url I posted. It includes Maven and it's acceptably up to
date.
Post by Ricky
Hey Guys,
I did an export on environment variables and the maven version changed and
worked fine. Thanks for your help, appreciate it. Gabriel, what is mac
ports ... i have been hearing some stuff about it, just curious if you
don't mind my asking...
Post by Gabriel Garcia
Rick,
Apart from Wendy's instructions, you can also install Maven with tools
I use Maven with Mac OS X 10.5 (Leopard) and Maven 2.0.9 without a
problem, but I I used darwinports: http://darwinports.com/ (a simple
sudo port install maven2 would install it in /opt, all you need to do
is add /opt/local/bin to your PATH in your profile). Fink
(http://www.finkproject.org/) also has it, but its latest Maven
version is 2.0.7, whilst darwinports's is 2.0.9.
Good luck with either suggestion,
Gabriel
Post by Wendy Smoak
Post by Ricky
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
...
Post by Ricky
when i do mvn -v i get version 2.0.6 ... what should i do?
Set M2_HOME to your new Maven install, and make sure $M2_HOME/bin is
on your PATH before the directory where the default mvn lives.
http://maven.apache.org/download.html#Installation
--
Wendy
---------------------------------------------------------------------
---------------------------------------------------------------------
Ricky
2008-11-24 16:13:47 UTC
Permalink
Wendy,

Thanks for replying. I think you are right ...

I get this error that saying :
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-3 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-2 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-1 as it requires Maven
version 2.0.7
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Required goal not found: archetype:generate
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Nov 24 11:10:04 EST 2008
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
anirudh-vyas-macbook:~ anirudh$

when i do mvn -v i get version 2.0.6 ... what should i do?
Post by Wendy Smoak
In order to help, we need to know what steps you took and what error
message you're getting.
I believe OS X ships with Maven 2.0.6, so if you haven't gotten it
completely switched over to (I assume) 2.0.9, the archetype:generate
goal will not be available as Archetype 2 requires at least 2.0.7.
What is the output of "mvn -v" ? Of "echo $M2_HOME" ?
--
Wendy
Post by Ricky
Hi,
I am trying to install maven on my mac book, Mac OS X. when i do mvn, it
mvn archetype:generate .. it gives build failure... My guess is that i am
missing some steps, can someone point me to either a URL or guide me
through
Post by Ricky
the steps for installing this on mac os x. I already have installed maven
on
Post by Ricky
vista and XP before ... but kinda new to mac os x ... any help would be
appreciable,
--
Regards
Vyas, Anirudh
|| ॐ ||
--
Regards
Vyas, Anirudh
|| ॐ ||
Loading...