maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <>
Subject Re: Inheritance of <preGoal> to sub-subprojects
Date Wed, 06 Aug 2003 18:32:48 GMT
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:
> For additional commands, e-mail:

Jason van Zyl

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:
For additional commands, e-mail:

View raw message