Xmlpullparserexception exception when MAVEN generates code structure

Source: Internet
Author: User

When you build the Eclipse project code structure using MAVEN Eclipse:eclipse, you encounter the following WARNING message: [WARNING] could not read workspace project From:e:\javaspace \webapi-mavenorg.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)
Cause of error:is the Pom.xml file format problem, you need to modify the file to UTF-8 no BOM format;For example: just UTF8 encoding format is not possible, you can use the document editor (notepad++, UltraEdit, etc.) to change the format to UTF8 no BOM format (Utf-8 without BOM) just fine.
Some blogs say what work space is locked, re-build a workspace There is no problem, a kind of misleading feeling ~ ~ (obviously XML Pareser exception).

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Xmlpullparserexception exception when MAVEN generates code structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.