DITA-OT 1.5 构建时出现字符内码异常

构建时候出现字符内码的异常:[code]gen-list-without-flagging:
[pipeline] Using XERCES.
[pipeline] Using Xerces grammar pool for DTD and schema caching.
[pipeline] org.dita.dost.exception.SAXExceptionWrapper: changingtheoil.xml Line
11:Invalid byte 1 of 1-byte UTF-8 sequence.
[pipeline]
[pipeline] at org.dita.dost.exception.DITAOTXMLErrorHandler.fatalError(DITA
OTXMLErrorHandler.java:56)
[pipeline] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
[pipeline] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown S
ource)
[pipeline] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown S
ource)
[pipeline] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
tContentDispatcher.dispatch(Unknown Source)
[pipeline] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(Unknown Source)
[pipeline] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
[pipeline] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
[pipeline] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[pipeline] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou
rce)
[pipeline] at org.dita.dost.reader.GenListModuleReader.parse(GenListModuleR
eader.java:540)
[pipeline] at org.dita.dost.module.GenMapAndTopicListModule.processFile(Gen
MapAndTopicListModule.java:435)
[pipeline] at org.dita.dost.module.GenMapAndTopicListModule.processWaitList
(GenMapAndTopicListModule.java:407)
[pipeline] at org.dita.dost.module.GenMapAndTopicListModule.execute(GenMapA
ndTopicListModule.java:254)
[pipeline] at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.
java:52)
[pipeline] at org.dita.dost.invoker.AntInvoker.execute(AntInvoker.java:151)

[pipeline] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
[pipeline] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[pipeline] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[pipeline] at java.lang.reflect.Method.invoke(Method.java:597)
[pipeline] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
[pipeline] at org.apache.tools.ant.Task.perform(Task.java:348)
[pipeline] at org.apache.tools.ant.Target.execute(Target.java:357)
[pipeline] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[pipeline] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1337)
[pipeline] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget
s(SingleCheckExecutor.java:38)
[pipeline] at org.apache.tools.ant.Project.executeTargets(Project.java:1189
)
[pipeline] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[pipeline] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.j
ava:105)
[pipeline] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
[pipeline] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[pipeline] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[pipeline] at java.lang.reflect.Method.invoke(Method.java:597)
[pipeline] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
[pipeline] at org.apache.tools.ant.Task.perform(Task.java:348)
[pipeline] at org.apache.tools.ant.Target.execute(Target.java:357)
[pipeline] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[pipeline] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1337)
[pipeline] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget
s(SingleCheckExecutor.java:38)
[pipeline] at org.apache.tools.ant.Project.executeTargets(Project.java:1189
)
[pipeline] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[pipeline] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.j
ava:105)
[pipeline] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
[pipeline] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[pipeline] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[pipeline] at java.lang.reflect.Method.invoke(Method.java:597)
[pipeline] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
[pipeline] at org.apache.tools.ant.Task.perform(Task.java:348)
[pipeline] at org.apache.tools.ant.Target.execute(Target.java:357)
[pipeline] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[pipeline] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1337)
[pipeline] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)

[pipeline] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
[pipeline] at org.apache.tools.ant.Project.executeTargets(Project.java:1189
)
[pipeline] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[pipeline] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[pipeline] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[pipeline] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[pipeline] [DOTJ013E][ERROR] Failed to parse the referenced file ‘tasks\changin
gtheoil.xml’ due to below exception. Please correct the reference base on the ex
ception message.
[pipeline] changingtheoil.xml Line 11:Invalid byte 1 of 1-byte UTF-8 sequence.
[pipeline]
[/code]这是因为,在文件中使用了UTF-8编码的字符,但是文件本身不是使用UTF-编码的。

可以通过EditPlus或者UltraEdit等工具将文件格式修改为UTF-8编码格式,将不会出现这个异常。