Error reading settings.xml

戏子无情 提交于 2019-12-12 20:15:19

问题


I wanted to run maven commands from the command line.

While running mvn commands , getting the error-

Error reading settings.xml: only whitespace content allowed before start tag and not \ufffd (position: START_DOCUMENT seen \ufffd... @1:1) 
  Line:   1
  Column: 1

what is the problem with my settings.xml ?


回答1:


This can happen if you've opened and saved your settings.xml from a non-text editor, which can add some non-printing characters to the file.

Try copying all the content and pasting into a new file using a text editor then renaming the file to settings.xml.




回答2:


Do you use multiple character sets in your text editor? You might have saved the text in UTF8 or a UTF16 format. Open in a text editor that supports changing the character encoding and save it as plain ASCII, or ANSI or whatever the normal 7bit scheme is called in that editor.



来源:https://stackoverflow.com/questions/1524775/error-reading-settings-xml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!