how to make cxf-xjc-plugin generate sources in utf-8

后端 未结 1 1042
无人及你
无人及你 2021-01-12 07:03

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

相关标签:
1条回答
  • 2021-01-12 07:39

    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>
    
    0 讨论(0)
提交回复
热议问题