Problem creating archetypes from project with a given encoding
--------------------------------------------------------------

                 Key: ARCHETYPE-379
                 URL: https://jira.codehaus.org/browse/ARCHETYPE-379
             Project: Maven Archetype
          Issue Type: Bug
          Components: Creator
    Affects Versions: 2.0-alpha-4
            Reporter: Javier Diaz
         Attachments: archetype-metadata.xml, 
maven-archetype-2.0-alpha-4.patch, pom.xml.sample

I'm trying to create and archetype from a project using a default encoding 
different from UTF-8. As states in the plugin page the option defaultEncoding 
could be used for that purpose but after configuring my pom and executing the 
command, the file archetype-metada.xml still uses UTF-8. Attached can be found 
the pom file I'm using and the resulting archetype-metada.xml.

I've detected that the property defaultEncoding is not been used in the class 
CreateArchetypeFromProjectMojo. Maybe that's the cause of the problem.

Attached can be found a patch for version 2.0-alpha-4 but I think the solution 
is the same for version 2.0.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to