处理 POM 时出现 Maven 错误:[致命] 不可解析的 POM...PITarget 带有保留的 xml 名称

Gau*_*uzy 3 eclipse spring maven spring-boot

任何人都知道为什么在 Springsource Tool Suite 中导入 Spring Boot 项目后会立即出现此错误:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM C:\Users\...\.m2\repository\com\fasterxml\oss-parent\33\oss-parent-33.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</profiles>\n\n</project>\n<?xml
Run Code Online (Sandbox Code Playgroud)

我四处看了看,遇到的唯一类似问题是:

  • ,然而,该解决方案有是创建一个新的工作区来解决它。它对我不起作用。
  • 这个但这也并不为我工作。

任何帮助将不胜感激。

谢谢!

Zia*_*nur 6

检查是否

<?xml version="1.0" encoding="UTF-8"?>
Run Code Online (Sandbox Code Playgroud)

XML 中的行重复(即 pom.xml 或 settings.xml 等)


Gau*_*uzy 5

显然它与我的代码库或 POM 无关。在我删除“.m2”目录中的所有内容并重建项目后,它开始正常工作。