> -----Mensaje original----- > De: J�rg Schaible [mailto:[EMAIL PROTECTED] > Enviado el: martes, 27 de abril de 2004 11:03 > Para: Maven Users List > Asunto: RE: build.properties & project.xml inheritence > > Marcin Gurbisz wrote on Tuesday, April 27, 2004 11:42 AM: > > > Mabey it would be done. But for now I use same hack in maven.xml on > > main project level and it works for subprojects: > > <preGoal name="build:start"> > > <attainGoal name="loadMasterProperties"/> > > </preGoal> > > > > <goal name="loadMasterProperties"> > > <echo message="loading master properties"/> > > <property file="${basedir}/../project.properties"/> > > </goal> > > I'll do the same, but it has some severe limitations: > - you cannot define maven.repo.remote, since it is evaluated > before any goal is run
You can define this hack <j:set var="maven.repo.remote">http://www.ibiblio.org/maven,http://apache.rediris.e s/java-repository</j:set> in your main project maven.xml I also hope that properties inheritance done by maven 1.0 final > - you cannot use substitutions in your "global" property > file, e.g. following fails, although the echo task suggest it > with a "proper" output of the property: > > project.properties: > ci.root=../.. > > global.properties: > maven.xdoc.jsl=${ci.root}/site.jsl > > See also comments accoring this in Geronimo's build files. > > Regards, > J�rg > > --------------------------------------------------------------------- > 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]
