No, it is possible.

Just declare your dependencies in the parent pom (directly into dependencies not in dependencyManagment) and they will be inherited in all subproject.

Could be usefull for some libraries like junit or log4j used accross all modules of an entire product.




From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: what is <dependencyManagement> used for?
Date: Thu, 22 Dec 2005 11:19:05 -0600 (CST)


nope, each subproject needs to declare what it uses, but can be seeded
version wise from the parent

On 12/22/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> 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
>



--
jesse mcconnell
jesseDOTmcconnellATgmailDOTcom


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


_________________________________________________________________
Créez gratuitement votre espace perso en ligne avec MSN Spaces ! http://spaces.msn.com/?mkt=fr-be


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

Reply via email to