I try to generate java classes from xsd in a maven project using cxf-xjc-plugin.
It runs fine, but the generated source files get platform specific encoding (cp1251
I could make cxf-xjc-plugin generate sources in UTF-8 by adding the following entry to the xsdOption element:
<extensionArgs> <arg>-encoding</arg> <arg>UTF-8</arg> </extensionArgs>