Using Maven 2.0.9, I have tried without success:
- ${dollar}{artifactId} with the property "dollar" set to "$", replaced by
value of artifactId,
- $${artifactId}, replaced by "$" followed by artifactId value.
In the plugin source code, the parameter is initialized with
"$${artifactId}-$${version}" with the annotation @expression. This works fine.
_______________________________________________________________________________
Christophe DENEUX / Capgemini Sud / Méditerranée
Integration Architect
Tel: + 33 4 93 95 55 92 / www.capgemini.com <http://www.capgemini.com/>
Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE
Join the Collaborative Business Experience
_______________________________________________________________________________
Please consider the environment and do not print this email unless absolutely
necessary. Capgemini encourages environmental awareness.
________________________________
De: Wendy Smoak [mailto:[EMAIL PROTECTED]
Date: lun. 28/04/2008 10:57
À: Maven Users List
Objet : Re: How to escape the substitution of properties in POM file
On Mon, Apr 28, 2008 at 4:16 PM, Deneux, Christophe
<[EMAIL PROTECTED]> wrote:
> To configure a plugin (maven-petals-plugin), I need to set a value to
> "${artifactId}" without substitution.
> How can I escape the property substitution mecanism ?
Thinking that Velocity is somehow involved, I tried \${artifactId} in
an Antrun echo task, but it didn't work. (I got a literal \ and the
value of artifactId.)
Any other ideas?
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]