Hi Mick,

If you happen to have the sources from the Maven2 plugin trunk, then have a 
look at the parent POM, it defines 2 <dependencies>  - JUnit and 
maven-plugin-api and you don\'t need to redefine them again in your plugin 
poms which extend from the parent.

Note however that the dependencies in this case are under the <project> 
element (and not <dependencyManagement>).

I hope that was what you were looking for.

Cheers,
Rahul



----- Original Message ----- 
From: \"Mick Knutson\" <[EMAIL PROTECTED]>
To: \"Maven Users List\" <[email protected]>; <[EMAIL PROTECTED]>
Sent: Friday, December 23, 2005 5:25 AM
Subject: Re: [m2] what is <dependencyManagement> used for?


> That sounds great, but what if I am using multiple sub projects and they 
> all require some standard libs? Is there a way to just declare them in the 
> root pom instead of having to re-declare them in each sub pom?
>
> --------------------------------------------------------------------------------
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: [EMAIL PROTECTED]
> --------------------------------------------------------------------------------
>
> ----- Original Message ----- 
> From: \"Jesse McConnell\" <[EMAIL PROTECTED]>
> To: \"Maven Users List\" <[email protected]>; \"Mick Knutson\" 
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 22, 2005 8:18 AM
> Subject: Re: [m2] what is <dependencyManagement> used for?
>
>
> it lets you set all of the scopes and versions of dependencies in one 
> place,
> and then child poms don\'t need to specify versions in their dependencies,
> they get inherited from the parent pom.
>
> then if you up the version for something, you can update it only in one
> place.
>
>
>
> On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>>
>> what is <dependencyManagement> used for?
>>
>>
>>
>> --------------------------------------------------------------------------------
>> Thanks
>> Mick Knutson
>>
>> http://www.BASELogic.com
>> http://www.MickKnutson.com
>>
>> MSN Messenger: [EMAIL PROTECTED]
>>
>> --------------------------------------------------------------------------------
>>
>>
>
>
> --
> jesse mcconnell
>
> ---------------------------------------------------------------------
> 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]



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

Reply via email to