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

后端 未结 1 1044
无人及你
无人及你 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:

    
        -encoding
        UTF-8
    
    

    0 讨论(0)
提交回复
热议问题