I'm only running this build from each child.
I'm using the parent for inheritance.
The parent doesn't even define the children as there are 100s.

If I have:

2 poms: pom a & pom b
Pom b declare pom a as it's parent.
Pom a has 2 profiles decared in it.
I run mvn -Pprofile1 from pom b's directory will profile1 activate for the
loading of pom a?

When I run mvn -Pprofile1 help:active-profiles it doesn't show. 

D-

-----Original Message-----
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 4:25 PM
To: Maven Users List
Subject: Re: Profile Inheritance

right. if you ran from the parent, and the parent specified these child POMs
as modules (or sub-modules), then you'd get a listing of all POMs in the
build, and the profiles which are active for each.

On 8/14/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
>
> I think this may explain what I was seeing..
>
> I have a parent pom.xml which defines 2 profiles. When I run mvn
> help:active-profiles for the child, I couldn't get it to say that either
> profile was active.
>
> So perhaps the profile is active in the parent but not in the child?
>
>
>
> -----Original Message-----
> From: John Casey [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 14, 2006 3:20 PM
> To: Maven Users List
> Subject: Re: Profile Inheritance
>
> Actually, profiles themselves are NOT inherited as such. Instead, they are
> triggered when the parent POM delcaring them is loaded, and applied to
> that
> parent POM. Then, the effects of the profile are inherited via normal
> parent
> inheritance calculation.
>
> It's a small difference in most cases, but it can be important to
> understand.
>
> -john
>
> On 8/14/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> >
> > On 8/14/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
> > >
> > > Are profiles inherited from the parent pom?
> >
> >
> > They are supposed to be, although there have been a few issues here and
> > there.  The one that bit us (Shale project) was MNG-2221[1], which looks
> > like it's been fixed for 2.0.5 when that is released.
> >
> > Craig
> >
> > [1] http://jira.codehaus.org/browse/MNG-2221
> >
> >
> > __________________________________________
> > >
> > >
> > > Douglas W. Ferguson
> > >
> > > EPSIIA - Another Fiserv Connection
> > >
> > > Development
> > >
> > > Office Phone: 512-329-0081 ext. 3309
> > >
> > > Dial Toll Free: 800-415-5946
> > >
> > > Mobile Phone: 512-293-7279
> > >
> > > Fax: 512-329-0086
> > >
> > > [EMAIL PROTECTED]
> > >
> > > www.epsiia.com <http://www.epsiia.com/>
> > >
> > > __________________________________________
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
> ---------------------------------------------------------------------
> 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