cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nicolas de loof (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2450) WSDL2java uses system encoding when generating java classes
Date Fri, 05 Mar 2010 08:52:27 GMT

    [ https://issues.apache.org/jira/browse/CXF-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841755#action_12841755
] 

nicolas de loof commented on CXF-2450:
--------------------------------------

A workaround is to isolate wsdl2java code generation in a dedicated maven module and to configure
the compiler plugin to use OS dependant encoding (that is not recommended in other cases)
:

{code}
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <encoding>${file.encoding}</encoding>
        </configuration>
</plugin>
{code}

> 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
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message