首页 > 解决方案 > 不可解析的 POM spring boot maven 项目

问题描述

我知道这是重复的问题。但是对前面问题的任何回答都对我没有帮助。我在eclipse中创建了非常简单的spring boot项目。在 linux 中运行一切正常。但在 Windows 中,它在 pom.xml 的第一行中出现以下错误。

Project build error: Non-parseable POM 
C:\Users\DELL\.m2\repository\io\netty\netty-bom\4.1.25.Final\netty-bom- 
4.1.25.Final.pom: processing instruction can not have PITarget with reserved 
xml name (position: END_TAG seen ...</dependencyManagement>\n</project>\n<? 
xml ... @236:7)

并且当运行以下错误

C:\Users\DELL\eclipse-workspace\demo>mvn clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM C:\maven-repo\repository\io\netty\netty-bom\4.1.25.Final\netty-bom-4.1.25.Final.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</dependencyManagement>\n</project>\n<?xml ... @236:7)  @ C:\maven-repo\repository\io\netty\netty-bom\4.1.25.Final\netty-bom-4.1.25.Final.pom, line 236, column 7
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.springboot:demo:0.0.1-SNAPSHOT (C:\Users\DELL\eclipse-workspace\demo\pom.xml) has 1 error
[ERROR]     Non-parseable POM C:\maven-repo\repository\io\netty\netty-bom\4.1.25.Final\netty-bom-4.1.25.Final.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</dependencyManagement>\n</project>\n<?xml ... @236:7)  @ C:\maven-repo\repository\io\netty\netty-bom\4.1.
25.Final\netty-bom-4.1.25.Final.pom, line 236, column 7 -> [Help 2]
[ERROR]<br>
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

我为此尝试了大约三天,但现在我不知道如何解决这个错误。请有人帮助我。

标签: javawindowseclipsemavenspring-boot

解决方案


推荐阅读