You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Maxwell Grender-Jones <MG...@email.com> on 2004/05/13 13:23:25 UTC

Re: Extending project and inheriting project.properties and maven.xml

This is a known (and now fixed) bug
http://jira.codehaus.org/browse/MAVEN-37
On Tue, 2004-04-13 at 18:56, Carlos wrote:
> Hi,
> 
> I have subprojects with project.xml extending a base project.xml 
> 
> <project>
>    <extend>${basedir}/../../common/project.xml</extend>
> 
> But properties defined in the superproject' project.properties are not
> available to subprojects.
> 
> The only way to do this was define properties in the base maven.xml with
> j:set
> 
> <j:set var="maven.compile.executable">jikes</j:set>
> 
> But then they can't be overriden by the project.properties in the
> subprojects. I think that it can be solved with a j:if for each property but
> is there an easy way?
> 
> 
> Also if I have two levels of inheritance, the top level maven.xml is not
> inherited, only the second level one. I tried with jelly tags "include" and
> "import" but preGoals and postGoals don't seem to be available.
> 
> 
> Help would be very appreciated.
> 
> Thanks in advance
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
-- 
[M. Grender-Jones                                ] 
[MSN: MGrenderJones@email.com       ICQ: 28467015] 

An ant carrying a leaf fragment, is equivalent to a man carrying a bus
above his head, holding it in his teeth.  







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


RE: Extending project and inheriting project.properties andmaven.xml

Posted by Vincent Massol <vm...@pivolis.com>.
This is fixed in Maven RC3.

Thanks
-Vincent

> -----Original Message-----
> From: Maxwell Grender-Jones [mailto:MGrenderJones@email.com]
> Sent: 13 May 2004 13:23
> To: Maven Users List
> Subject: Re: Extending project and inheriting project.properties
> andmaven.xml
> 
> This is a known (and now fixed) bug
> http://jira.codehaus.org/browse/MAVEN-37
> On Tue, 2004-04-13 at 18:56, Carlos wrote:
> > Hi,
> >
> > I have subprojects with project.xml extending a base project.xml
> >
> > <project>
> >    <extend>${basedir}/../../common/project.xml</extend>
> >
> > But properties defined in the superproject' project.properties are
not
> > available to subprojects.
> >
> > The only way to do this was define properties in the base maven.xml
with
> > j:set
> >
> > <j:set var="maven.compile.executable">jikes</j:set>
> >
> > But then they can't be overriden by the project.properties in the
> > subprojects. I think that it can be solved with a j:if for each
property
> but
> > is there an easy way?
> >
> >
> > Also if I have two levels of inheritance, the top level maven.xml is
not
> > inherited, only the second level one. I tried with jelly tags
"include"
> and
> > "import" but preGoals and postGoals don't seem to be available.
> >
> >
> > Help would be very appreciated.
> >
> > Thanks in advance
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> --
> [M. Grender-Jones                                ]
> [MSN: MGrenderJones@email.com       ICQ: 28467015]
> 
> An ant carrying a leaf fragment, is equivalent to a man carrying a bus
> above his head, holding it in his teeth.
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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