You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ricky <ri...@gmail.com> on 2008/11/23 17:55:14 UTC

Installing Maven on Mac OS X

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
||  ॐ  ||

Re: Installing Maven on Mac OS X

Posted by Gabriel Garcia <ga...@gmail.com>.
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.

2008/11/25 Ricky <ri...@gmail.com>:
> 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...
>
> On Mon, Nov 24, 2008 at 11:22 AM, Gabriel Garcia <ga...@gmail.com>wrote:
>
>> 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
>>
>> 2008/11/24 Wendy Smoak <ws...@gmail.com>:
>> > On Mon, Nov 24, 2008 at 9:12 AM, Ricky <ri...@gmail.com> wrote:
>> >
>> >> I get this error that saying :
>> >> INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
>> >> version 2.0.7
>> > ...
>> >> 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
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Installing Maven on Mac OS X

Posted by Ricky <ri...@gmail.com>.
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...

On Mon, Nov 24, 2008 at 11:22 AM, Gabriel Garcia <ga...@gmail.com>wrote:

> 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
>
> 2008/11/24 Wendy Smoak <ws...@gmail.com>:
> > On Mon, Nov 24, 2008 at 9:12 AM, Ricky <ri...@gmail.com> wrote:
> >
> >> I get this error that saying :
> >> INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
> >> version 2.0.7
> > ...
> >> 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
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Installing Maven on Mac OS X

Posted by Gabriel Garcia <ga...@gmail.com>.
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

2008/11/24 Wendy Smoak <ws...@gmail.com>:
> On Mon, Nov 24, 2008 at 9:12 AM, Ricky <ri...@gmail.com> wrote:
>
>> I get this error that saying :
>> INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
>> version 2.0.7
> ...
>> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Installing Maven on Mac OS X

Posted by Wendy Smoak <ws...@gmail.com>.
On Mon, Nov 24, 2008 at 9:12 AM, Ricky <ri...@gmail.com> wrote:

> I get this error that saying :
> INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
> version 2.0.7
...
> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Installing Maven on Mac OS X

Posted by Ricky <ri...@gmail.com>.
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?


On Sun, Nov 23, 2008 at 12:00 PM, Wendy Smoak <ws...@gmail.com> wrote:

> 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
>
> On Sun, Nov 23, 2008 at 9:55 AM, Ricky <ri...@gmail.com> wrote:
> > 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
> > ||  ॐ  ||
> >
>



-- 

Regards
Vyas, Anirudh
||  ॐ  ||

Re: Installing Maven on Mac OS X

Posted by Ricky <ri...@gmail.com>.
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?


On Sun, Nov 23, 2008 at 12:00 PM, Wendy Smoak <ws...@gmail.com> wrote:

> 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
>
> On Sun, Nov 23, 2008 at 9:55 AM, Ricky <ri...@gmail.com> wrote:
> > 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
> > ||  ॐ  ||
> >
>



-- 

Regards
Vyas, Anirudh
||  ॐ  ||

Re: Installing Maven on Mac OS X

Posted by Wendy Smoak <ws...@gmail.com>.
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

On Sun, Nov 23, 2008 at 9:55 AM, Ricky <ri...@gmail.com> wrote:
> 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
> ||  ॐ  ||
>