On a french Windows 7 (I know, this is already an issue in itself ;-)), it's impossible to build a docbook when the month contains an accented character. The Java platform encoding on Windows is always CP1252 and the date generated for the 'today' injection breaks the XML parsing with :
Error on line 4 column 19 of file:/C:/Dev/workspaceseam3/graniteds/docs/reference/src/main/docbook/en-US/master-flex.xml:
Error reported by XML parser: Invalid byte 1 of 1-byte UTF-8 sequence.
A simple workaround is to change the injectionDateFormat to a purely numeric format in the maven plugin options :
<options>
<xincludeSupported>true</xincludeSupported>
<xmlTransformerType>saxon</xmlTransformerType>
<docbookVersion>1.74.0</docbookVersion>
<localeSeparator>-</localeSeparator>
<injectionDateFormat>dd/MM/yyyy</injectionDateFormat>
</options>
I'm not sure how to fix this, I've tried to reencode the injected string in UTF-8 in AbstractDocBookMojo.getValueInjections but that did not work.
It's probably the same bug as here :
https://issues.jboss.org/browse/JBSEAM-4901
and here :
http://seamframework.org/145736.lace
On a french Windows 7 (I know, this is already an issue in itself ;-)), it's impossible to build a docbook when the month contains an accented character. The Java platform encoding on Windows is always CP1252 and the date generated for the 'today' injection breaks the XML parsing with :
Error on line 4 column 19 of file:/C:/Dev/workspaceseam3/graniteds/docs/reference/src/main/docbook/en-US/master-flex.xml:
Error reported by XML parser: Invalid byte 1 of 1-byte UTF-8 sequence.
A simple workaround is to change the injectionDateFormat to a purely numeric format in the maven plugin options :
<options>
<xincludeSupported>true</xincludeSupported>
<xmlTransformerType>saxon</xmlTransformerType>
<docbookVersion>1.74.0</docbookVersion>
<localeSeparator>-</localeSeparator>
<injectionDateFormat>dd/MM/yyyy</injectionDateFormat>
</options>
I'm not sure how to fix this, I've tried to reencode the injected string in UTF-8 in AbstractDocBookMojo.getValueInjections but that did not work.
It's probably the same bug as here :
https://issues.jboss.org/browse/JBSEAM-4901
and here :
http://seamframework.org/145736.lace