Warning messages for properties in pom.xml files
------------------------------------------------

                 Key: ARCHETYPE-219
                 URL: http://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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to