You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dasarikm <da...@gmail.com> on 2008/03/05 19:16:08 UTC

Re: property substitution in site files?

Hey Paul,
 Did you resolve this issue.
I have a parent pom and I want the properties in parent to be substituted in
the child's pom when I do mvn install.
Is it possible.

Thanks
Krish

pjungwir wrote:
> 
> Hello,
> 
> I am trying to generate some site files using the .apt format. (I'm not
> wedded to that format, but I'm starting there since it's the easiest.) I
> was hoping to do something like this:
> 
>   ${project.name}
> 
>     ${project.description}
> 
> 
> But that doesn't work. The curly braces disappear, but the properties
> aren't replaced. So I guess maven doesn't do property substitution before
> processing these files, huh? Is there a switch to turn that on? Should I
> just hack it by running my site files through a resource filter?
> 
> Thanks,
> Paul
> 
> 

-- 
View this message in context: http://www.nabble.com/property-substitution-in-site-files--tp6887419s177p15855620.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: property substitution in site files?

Posted by VUB Stefan Seidel <ss...@vub.de>.
Hi Krish,

what you want is absolutely ok with maven. Paul was talking about the 
apt format for the site documentation. I think this was just not made to 
include maven properties.
See http://maven.apache.org/doxia/references/apt-format.html
Curly braces mean anchor, not property.

Stefan

dasarikm wrote:
> Hey Paul,
>  Did you resolve this issue.
> I have a parent pom and I want the properties in parent to be substituted in
> the child's pom when I do mvn install.
> Is it possible.
> 
> Thanks
> Krish
> 
> pjungwir wrote:
>> Hello,
>>
>> I am trying to generate some site files using the .apt format. (I'm not
>> wedded to that format, but I'm starting there since it's the easiest.) I
>> was hoping to do something like this:
>>
>>   ${project.name}
>>
>>     ${project.description}
>>
>>
>> But that doesn't work. The curly braces disappear, but the properties
>> aren't replaced. So I guess maven doesn't do property substitution before
>> processing these files, huh? Is there a switch to turn that on? Should I
>> just hack it by running my site files through a resource filter?
>>
>> Thanks,
>> Paul
>>
>>
> 

-- 
best regards,

Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.    +49 (341) 9 60 50 07
fax.    +49 (341) 9 60 50 92
mail.   sseidel@vub.de
web.    www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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