[
https://issues.apache.org/jira/browse/CXF-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416182#comment-13416182
]
Martijn Dashorst commented on CXF-2450:
---------------------------------------
Another way to solve this issue (at least for us):
export MAVEN_OPTS=-Dfile.encoding=UTF8
> WSDL2java uses system encoding when generating java classes
> -----------------------------------------------------------
>
> Key: CXF-2450
> URL: https://issues.apache.org/jira/browse/CXF-2450
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.1.3
> Reporter: Mads Jensen
> Assignee: Daniel Kulp
> Fix For: 2.5.4, 2.6.1
>
>
> When using wsdl2java java classes are created in default encoding(for
> instance MacRoman). But when we afterwards try to compile these classes in
> UTF-8 special chars in java comments resolves in compliations error
> [INFO] Compilation failure
> /url/to/file/SomeFile.java:[31,18] unmappable character for encoding UTF-8
> We would like somehow to specify which encoding wsdl2java should use when
> generating java classes. We can't seem to find this property.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira