在使用maven eclipse:eclipse生成Eclipse项目代码结构时,遇到如下Warning提示信息:
[WARNING] could not read workspace project from:E:\JavaSpace\webapi-maven
org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace content allowed before start tag and not \u9518 (position: START_DOCUMENT seen \u9518... @1:1)
at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1557)
at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1436)
at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:186)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:75)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:40)
例如:只是UTF8编码格式也不行,可以使用文档编辑器(Notepad++、UltraEdit等)将格式修改为UTF8无BOM格式(utf-8 without BOM)就好了。