You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Deneux, Christophe" <ch...@capgemini.com> on 2008/04/28 10:16:16 UTC

How to escape the substitution of properties in POM file

Hi all,
 
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 ?
 
 
Regards,
 
_______________________________________________________________________________
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.

RE : How to escape the substitution of properties in POM file

Posted by "Deneux, Christophe" <ch...@capgemini.com>.
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:wsmoak@gmail.com]
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
<ch...@capgemini.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




Re: How to escape the substitution of properties in POM file

Posted by Wendy Smoak <ws...@gmail.com>.
On Mon, Apr 28, 2008 at 4:16 PM, Deneux, Christophe
<ch...@capgemini.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org