Wrong pom.xml encoding in archetypes with modules
--------------------------------------------------
Key: ARCHETYPE-372
URL: http://jira.codehaus.org/browse/ARCHETYPE-372
Project: Maven Archetype
Issue Type: Bug
Components: Generator
Affects Versions: 2.0
Reporter: Emilio Jose Mena Cebrian
In archetypes with modules, the parent pom.xml is written in the system default
encoding instead of UTF-8 (encoding for poms according to
DefaultFilesetArchetypeGenerator.java)
The problem is located at method DefaultPomManager.addModule(), at line 86:
86 SAXReader reader = new SAXReader();
87 Document document = reader.read( fileReader );
Encoding property of SAXReader object is not set and according to
org.dom4j.io.SAXReader API
public void setEncoding(String encoding)
Sets encoding used for InputSource (null means system default encoding)
the default encoding is used for reading the pom.xml when adding a module, but
UTF-8 was used to generate that file.
--
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