[ 
https://jira.codehaus.org/browse/MNG-3558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christophe DENEUX updated MNG-3558:
-----------------------------------

    Description: 
Hi,

Developping a maven plugin, it is possible to initialize plugin parameters to 
"$\{artifactId}-$\{version}" without property substitution, using:
{{@parameter expression="$$\{artifactId}-$$\{version}.$$\{extension}"}}
at the parameter declaration.

But, in a POM file, it seems to me that it is not possible to redefine the 
value of a such parameter without property substitution.

I had tried without success:
* <parameter>$\{dollar}\{artifactId}</parameter> with the property "dollar" set 
to "$", replaced by value of artifactId,
* <parameter>$$\{artifactId}</parameter>, replaced by "$" followed by 
artifactId value,
* <parameter>\$\{artifactId}</parameter>, replaced by "\" followed by 
artifactId value,
* <parameter><!\[CDATA\[$\{artifactId}]]></parameter>, replaced by value of 
artifactId.

Please, add a property substitution escaping mechanism.

Thanks,
Christophe

  was:
Hi,

Developping a maven plugin, it is possible to initialize plugin parameters to 
"${artifactId}-${version}" without property substitution, using:
{code}
     @parameter expression="$${artifactId}-$${version}.$${extension}"
at the parameter declaration.
{code}

But, in a POM file, it seems to me that it is not possible to redefine the 
value of a such parameter without property substitution.

I had tried without success:
   - {{<parameter>${dollar}{artifactId}</parameter>}} with the property 
"dollar" set to "$", replaced by value of artifactId,
   - {{<parameter>$${artifactId}</parameter>}}, replaced by "$" followed by 
artifactId value,
   - {{<parameter>\${artifactId}</parameter>}}, replaced by "\" followed by 
artifactId value,
   - {{<parameter><![CDATA[${artifactId}]]></parameter>}}, replaced by value of 
artifactId.

Please, add a property substitution escaping mechanism.

Thanks,
Christophe


> Add a property substitution escaping mechanism
> ----------------------------------------------
>
>                 Key: MNG-3558
>                 URL: https://jira.codehaus.org/browse/MNG-3558
>             Project: Maven
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.9
>            Reporter: Christophe DENEUX
>
> Hi,
> Developping a maven plugin, it is possible to initialize plugin parameters to 
> "$\{artifactId}-$\{version}" without property substitution, using:
> {{@parameter expression="$$\{artifactId}-$$\{version}.$$\{extension}"}}
> at the parameter declaration.
> But, in a POM file, it seems to me that it is not possible to redefine the 
> value of a such parameter without property substitution.
> I had tried without success:
> * <parameter>$\{dollar}\{artifactId}</parameter> with the property "dollar" 
> set to "$", replaced by value of artifactId,
> * <parameter>$$\{artifactId}</parameter>, replaced by "$" followed by 
> artifactId value,
> * <parameter>\$\{artifactId}</parameter>, replaced by "\" followed by 
> artifactId value,
> * <parameter><!\[CDATA\[$\{artifactId}]]></parameter>, replaced by value of 
> artifactId.
> Please, add a property substitution escaping mechanism.
> Thanks,
> Christophe



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to