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

2004-05-13 Thread Vincent Massol
This is fixed in Maven RC3.

Thanks
-Vincent

> -Original Message-
> From: Maxwell Grender-Jones [mailto:[EMAIL PROTECTED]
> 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
> >
> > 
> >${basedir}/../../common/project.xml
> >
> > 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
> >
> > jikes
> >
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> [M. Grender-Jones]
> [MSN: [EMAIL PROTECTED]   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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



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

2004-05-13 Thread Maxwell Grender-Jones
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 
> 
> 
>${basedir}/../../common/project.xml
> 
> 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
> 
> jikes
> 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
[M. Grender-Jones] 
[MSN: [EMAIL PROTECTED]   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2004-04-20 Thread Carlos Sanchez
Thanks.

I was using rc1 and now updated to rc2. maven.xml inheritance works fine, I
hope inheritance of project.properties will be soon available.

> -Mensaje original-
> De: Brett Porter [mailto:[EMAIL PROTECTED] 
> Enviado el: miƩrcoles, 14 de abril de 2004 0:57
> Para: 'Maven Users List'
> Asunto: RE: Extending project and inheriting 
> project.properties and maven.xml
> 
> > 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?
> 
> Won't happen in Maven 1.0 because it broke people's code when 
> it was implemented as they started relying on this behaviour.
> 
> > 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.
> 
> This should work as of rc2. What version are you using?
> 
> - Brett
> 



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



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

2004-04-14 Thread Michele_Forte
Carlos give a look at the following project

http://cvs.apache.org/viewcvs/incubator-geronimo/

in particular in the etc directory there is a common maven.xml file for
common functionality used by any component to be built. I found an
instructive example


Regards

Michele




|-+>
| |   "Carlos" |
| |   <[EMAIL PROTECTED]|
| |   sas.net> |
| ||
| |   Sent by: "Carlos |
| |   Sanchez" |
| |   <[EMAIL PROTECTED]|
| |   usas.net>|
| ||
| ||
| |   13/04/2004 19:56 |
| |   Please respond to|
| |   "Maven Users |
| |   List"|
| ||
|-+>
  
>--|
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |To: "'Maven Users List'" <[EMAIL 
PROTECTED]> |
  |cc: (bcc: Michele Forte/SwissRe)
  |
  |bcc:Michele Forte/SwissRe   
          |
  |Subject:    Extending project and 
inheriting project.properties and maven.xml |
  
>--|




Hi,

I have subprojects with project.xml extending a base project.xml


   ${basedir}/../../common/project.xml

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

jikes

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This e-mail, including attachments, is intended for the person(s) or
company named and may contain confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended recipient,
please delete this message and notify the sender




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



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

2004-04-13 Thread Brett Porter
> 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?

Won't happen in Maven 1.0 because it broke people's code when it was
implemented as they started relying on this behaviour.

> 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.

This should work as of rc2. What version are you using?

- Brett


Extending project and inheriting project.properties and maven.xml

2004-04-13 Thread Carlos
Hi,

I have subprojects with project.xml extending a base project.xml 


   ${basedir}/../../common/project.xml

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

jikes

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Extending project and inheriting project.properties

2004-04-09 Thread Carlos
I have subprojects with project.xml extending a base project.xml 


   ${basedir}/../../common/project.xml

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

jikes

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?



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