Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Generator
-
Labels:None
-
Number of attachments :
Description
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.