[
https://issues.apache.org/jira/browse/OOZIE-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16092911#comment-16092911
]
Daniel Becker commented on OOZIE-2980:
--------------------------------------
The javac warning is:
{code:java}
[INFO] --- jaxb2-maven-plugin:2.2:xjc (xjc) @ oozie-jobs-api ---
[WARNING] Configured encoding [UTF-8] differs from encoding given in system
property 'file.encoding' [ISO-8859-1]
{code}
The jaxb2-maven-plugin decides the encoding in the following way:
{code:java}
The algorithm for finding the encoding to use is as follows (where the first
non-null value found is used for encoding):
1. If the configuration property is explicitly given within the plugin's
configuration, use that value.
2. If the Maven property project.build.sourceEncoding is defined, use its value.
3. Otherwise use the value from the system property file.encoding.
{code}
Source:
[http://www.mojohaus.org/jaxb2-maven-plugin/Documentation/v2.2/xjc-mojo.html]
The top level pom.xml in Oozie sets project.build.sourceEncoding to UTF-8, but
the file.encoding system property is ISO-8859-1 on the machine where the build
is run.
I don't think we can / should do anything about this warning, please comment if
you don't agree or have an idea of what to do.
> JAXB Proof of Concept
> ---------------------
>
> Key: OOZIE-2980
> URL: https://issues.apache.org/jira/browse/OOZIE-2980
> Project: Oozie
> Issue Type: Sub-task
> Components: client
> Affects Versions: 4.3.0
> Reporter: Andras Piros
> Assignee: Daniel Becker
> Attachments: OOZIE-2980-001-wip.patch, OOZIE-2980-002-wip.patch,
> OOZIE-2980-003-wip.patch, OOZIE-2980-004-wip.patch
>
> Original Estimate: 24h
> Time Spent: 24h
> Remaining Estimate: 0h
>
> Create a proof of concept w/ JAXB that:
> * only works for workflows
> * given a workflow XSD file
> Following activities in descending complexity order:
> * auto-generates the JAXB beans w/ the
> [*{{jaxb2-maven-plugin}}*|http://www.mojohaus.org/jaxb2-maven-plugin/Documentation/v2.2/]
> * code / configs are stored in a Maven subproject
> * can read a {{workflow.xml}} into JAXB beans
> * can write a JAXB bean into {{workflow.xml}}
> * make unit tests for XML -> JAXB and JAXB -> XML use cases
> * parametrization ({{job.properties}} key / value pairs), as well as EL
> functions (like {{$\{wf:currentUser()\}}}) are stored as plain strings
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)