cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Urban (JIRA)" <>
Subject [jira] [Created] (CXF-6712) [cxf-java2wadl-plugin] Add parameter encoding to goal parsejavadoc
Date Tue, 15 Dec 2015 18:19:46 GMT
Daniel Urban created CXF-6712:

             Summary: [cxf-java2wadl-plugin] Add parameter encoding to goal parsejavadoc
                 Key: CXF-6712
             Project: CXF
          Issue Type: Improvement
          Components: JAX-RS
    Affects Versions: 3.1.4
            Reporter: Daniel Urban

The cxf-java2wadl-plugin uses always the platform encoding, which produces errors, if source
has another encoding. 

The used maven-javadoc-plugin has a parameter for encoding, it should be set in cxf-java2wadl-plugin.

Something like:


@Parameter( property = "encoding", defaultValue = "${}" )
private String encoding;

public void execute() throws MojoExecutionException, MojoFailureException {
        AbstractJavadocMojo mojo = new JavadocReport();
        Locale locale = Locale.getDefault();
        try {
            Field f = AbstractJavadocMojo.class.getDeclaredField("encoding");
            f.set(mojo, encoding);


should do it. 

This message was sent by Atlassian JIRA

View raw message