java - 不可解析的 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
我为此尝试了大约三天,但现在我不知道如何解决这个错误。请有人帮助我。
解决方案
推荐阅读
- css - Bootstrap 4 - 防止链接在导航栏上断线
- bash - 当 <
我有一个bash脚本如下
#!/usr/bin/env bash cd /Users/amar/Documents/ThesisCode/CEP_codes/mqtt-receiver sqlite3 database <<EOF SELECT sum(detection_time - generation_time)/count(*) from mobile
- scrollbar - 如何使滚动条出现在带有未定义大小的面板的窗口中?
- javascript - 为什么我的画布动画在应该加速时却变慢了?
- actionscript - GPS.ane 为我的应用程序,我不断收到错误第 55 行,第 50 列 1120:访问未定义的属性 onClickStop
- c++ - 快速排序不适用于排序数组
- c++ - 使用插入排序进行快速排序
- r - R中ifelse()函数的语法请
- react-native - 无法使用 ref 访问组件
- c - 在 C 中创建简单的位图(没有外部库)