You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brent Hale <br...@eventronix.com> on 2003/08/06 19:24:18 UTC

Inheritance of to sub-subprojects

I have a directory structure which includes subprojects some of which 
have also have subprojects.  All project.xml files inherit from the 
top-level parent.  The top level parent maven.xml file has in it the 
following pregoal:

    <preGoal name="jar:jar">
        <attainGoal name="someotherplugin:goal"/>
    </preGoal>

This pregoal gets called correctly for each immediate subproject.  
However for subprojects that have other subprojects (ones which have to 
use the reactor to build other subprojects) it appears that the preGoal 
is not being inherited.  My work-around is to put the above pregoal into 
the maven.xml file of each parent that has subprojects.  I was thinking 
(assuming) that the top-level pregoal should have been passed all the 
way down.

Is this a bug or the way maven was designed to work?

Brent



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


Re: Inheritance of to sub-subprojects

Posted by Jason van Zyl <jv...@codehaus.org>.
On Wed, 2003-08-06 at 13:24, Brent Hale wrote:
> I have a directory structure which includes subprojects some of which 
> have also have subprojects.  All project.xml files inherit from the 
> top-level parent.  The top level parent maven.xml file has in it the 
> following pregoal:
> 
>     <preGoal name="jar:jar">
>         <attainGoal name="someotherplugin:goal"/>
>     </preGoal>
> 
> This pregoal gets called correctly for each immediate subproject.  
> However for subprojects that have other subprojects (ones which have to 
> use the reactor to build other subprojects) it appears that the preGoal 
> is not being inherited.  My work-around is to put the above pregoal into 
> the maven.xml file of each parent that has subprojects.  I was thinking 
> (assuming) that the top-level pregoal should have been passed all the 
> way down.
> 
> Is this a bug or the way maven was designed to work?

It's a bug.

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

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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


Re: Inheritance of to sub-subprojects

Posted by Jason van Zyl <jv...@codehaus.org>.
On Thu, 2003-08-07 at 11:29, Brent Hale wrote:
> MAVEN-611 seems to refer to the properties in the POM (or project.xml 
> file -- if I understand things correctly).  I remember another post 
> which seemed to imply that the goals in a maven.xml file were being 
> inherited correctly while the properties in the POM were not.  If so, 
> then this seems to be a different issue.
> 
> Am I understanding that correctly?

Nope, there are other issues. The end goal is complete recursive
inheritance be that properties, goals or anything else that may be
associated with a project.

> Brent
> 
> 
> 
> dion@multitask.com.au wrote:
> 
> >I believe this is a known issue.
> >
> >See MAVEN-611
> >--
> >dIon Gillard, Multitask Consulting
> >Blog:      http://blogs.codehaus.org/people/dion/
> >
> >
> >Brent Hale <br...@eventronix.com> wrote on 07/08/2003 03:24:18 AM:
> >
> >  
> >
> >>I have a directory structure which includes subprojects some of which 
> >>have also have subprojects.  All project.xml files inherit from the 
> >>top-level parent.  The top level parent maven.xml file has in it the 
> >>following pregoal:
> >>
> >>    <preGoal name="jar:jar">
> >>        <attainGoal name="someotherplugin:goal"/>
> >>    </preGoal>
> >>
> >>This pregoal gets called correctly for each immediate subproject. 
> >>However for subprojects that have other subprojects (ones which have to 
> >>use the reactor to build other subprojects) it appears that the preGoal 
> >>is not being inherited.  My work-around is to put the above pregoal into 
> >>    
> >>
> >
> >  
> >
> >>the maven.xml file of each parent that has subprojects.  I was thinking 
> >>(assuming) that the top-level pregoal should have been passed all the 
> >>way down.
> >>
> >>Is this a bug or the way maven was designed to work?
> >>
> >>Brent
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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


Re: Inheritance of to sub-subprojects

Posted by Brent Hale <br...@eventronix.com>.
MAVEN-611 seems to refer to the properties in the POM (or project.xml 
file -- if I understand things correctly).  I remember another post 
which seemed to imply that the goals in a maven.xml file were being 
inherited correctly while the properties in the POM were not.  If so, 
then this seems to be a different issue.

Am I understanding that correctly?
Brent



dion@multitask.com.au wrote:

>I believe this is a known issue.
>
>See MAVEN-611
>--
>dIon Gillard, Multitask Consulting
>Blog:      http://blogs.codehaus.org/people/dion/
>
>
>Brent Hale <br...@eventronix.com> wrote on 07/08/2003 03:24:18 AM:
>
>  
>
>>I have a directory structure which includes subprojects some of which 
>>have also have subprojects.  All project.xml files inherit from the 
>>top-level parent.  The top level parent maven.xml file has in it the 
>>following pregoal:
>>
>>    <preGoal name="jar:jar">
>>        <attainGoal name="someotherplugin:goal"/>
>>    </preGoal>
>>
>>This pregoal gets called correctly for each immediate subproject. 
>>However for subprojects that have other subprojects (ones which have to 
>>use the reactor to build other subprojects) it appears that the preGoal 
>>is not being inherited.  My work-around is to put the above pregoal into 
>>    
>>
>
>  
>
>>the maven.xml file of each parent that has subprojects.  I was thinking 
>>(assuming) that the top-level pregoal should have been passed all the 
>>way down.
>>
>>Is this a bug or the way maven was designed to work?
>>
>>Brent
>>
>>
>>
>>---------------------------------------------------------------------
>>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: Inheritance of to sub-subprojects

Posted by di...@multitask.com.au.
I believe this is a known issue.

See MAVEN-611
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


Brent Hale <br...@eventronix.com> wrote on 07/08/2003 03:24:18 AM:

> I have a directory structure which includes subprojects some of which 
> have also have subprojects.  All project.xml files inherit from the 
> top-level parent.  The top level parent maven.xml file has in it the 
> following pregoal:
> 
>     <preGoal name="jar:jar">
>         <attainGoal name="someotherplugin:goal"/>
>     </preGoal>
> 
> This pregoal gets called correctly for each immediate subproject. 
> However for subprojects that have other subprojects (ones which have to 
> use the reactor to build other subprojects) it appears that the preGoal 
> is not being inherited.  My work-around is to put the above pregoal into 

> the maven.xml file of each parent that has subprojects.  I was thinking 
> (assuming) that the top-level pregoal should have been passed all the 
> way down.
> 
> Is this a bug or the way maven was designed to work?
> 
> Brent
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>