[
https://issues.apache.org/jira/browse/AVRO-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eugene Mustaphin updated AVRO-1471:
-----------------------------------
Attachment: JIRA-AVRO-1471.patch
Suggested patch.
It adds SpecificCompiler.setOutputEncoding() method and a call for this method
to SchemaMojo for changing output encoding according to the
project.build.sourceEncoding property
> avro-maven-plugin schema generation should use project.build.sourceEncoding
> for generated files
> -----------------------------------------------------------------------------------------------
>
> Key: AVRO-1471
> URL: https://issues.apache.org/jira/browse/AVRO-1471
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.7.7
> Environment: MacOS 10.9
> Reporter: Eugene Mustaphin
> Priority: Minor
> Attachments: JIRA-AVRO-1471.patch
>
>
> avro-maven-plugin generates java sources using system default encoding which
> is not good if maven project sources encoding is different (which is often
> true on OS with non-UTF-8 system encoding like OSX and Windows) as generated
> files encoding differs from the rest of the project sources.
> It would be great if avro-maven-plugin used the
> ${project.build.sourceEncoding} pom property for it.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)