[
https://jira.codehaus.org/browse/ARCHETYPE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed ARCHETYPE-219.
------------------------------------
Resolution: Won't Fix
Please refer to
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
if you're wondering why this issue was closed out.
> Warning messages for properties in pom.xml files
> ------------------------------------------------
>
> Key: ARCHETYPE-219
> URL: https://jira.codehaus.org/browse/ARCHETYPE-219
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 2.0-alpha-4
> Environment: Windows or Mac OS X
> Apache Maven 2.0.9
> Reporter: Pat Podenski
> Priority: Minor
> Attachments: foo-archetype.zip
>
>
> Property expression in pom.xml are not escaped when creating an archetype
> from a project. As a result warning messages appear during project creation
> from the archetype.
> I was able to eliminate the warning messages by escaping the property
> expressions. For example, in a pom.xml file, I added a #set for escaping '$'
> at the beginning of the pom.xml and then applied the escape to the property
> expression as shown below:
> #set( $symbol_dollar = '$' )
> <?xml version="1.0" encoding="UTF-8"?>
> ....
> ....
> <directory>${symbol_dollar}{basedir}/src/main/resources</directory>
> If the archetype plugin would detect these property expressions and provide
> the escaping, then it would not be necessary to go through each pom.xml
> (e.g., in a multimodule project) and hand edit the escapes for property
> expressions.
> I am enclosing a simple multimodule project archetype in which I added the
> escape by hand editing the pom.xml of the sub module.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)