You can set the property in the top level project' maven.xml so it's
inherited by the subprojects

<j:set
var="maven.repo.remote">http://www.ibiblio.org/maven,http://oness.sourceforg
e.net/maven</j:set>


Carlos Sanchez
A Coru�a, Spain

Oness Project
http://oness.sourceforge.net


> -----Mensaje original-----
> De: Amato Massimiliano (TLAB) 
> [mailto:[EMAIL PROTECTED] 
> Enviado el: jueves, 29 de abril de 2004 16:58
> Para: Maven Users List
> Asunto: RE: Properties inheritance
> 
> I did what you suggested and to solve the remote repository 
> problem I had to update the default remote.repo from ibibilio 
> to mine, inside the maven.jar file
> 
> -----Original Message-----
> From: Roland Huss [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 29, 2004 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: Properties inheritance
> 
> 
> Hi,
> 
> as it seems, properties inheritance for multiprojects is not 
> yet available in RC2. I.e. if you define a property in your 
> toplevel's project.properties (or build.properties), you 
> won't get it if you call maven from within a subproject's directory.
> 
> I browsed the mailing list archives and found some comments in
> mid-2003 that property inheritance will be implemented. Is it 
> already implemented, maybe in the main CVS trunk ?
> 
> Otherwise I'm looking for a workaround. I tried to include 
> the parent's properties with <util:properties 
> file="../project.properties"> in maven.xml.
> 
> However, this won't evaluate the properties' values as 
> expression (they are copied literally).  Furthermore, you 
> can't set your 'maven.home.local' or 'maven.repo.remote' 
> quick enough since dependency resolving and plugin 
> registration is performed before maven.xml is executed.
> 
> Any ideas ?
> 
> thanx .....
> -- 
>                                                         ...roland huss
>                                                              consol.de
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 
> 



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

Reply via email to