异常处理(一):Non-parseable POM C:\Users\admin\.m2\repository\org\springframework问题解决方案

异常现象:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-config-dependencies\2.0.0.RELEASE\spring-cloud-config-dependencies-2.0.0.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</profiles>\n</project>\n<?xml ... @124:7)  @ C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-config-dependencies\2.0.0.RELEASE\spring-cloud-config-dependencies-2.0.0.RELEASE.pom, line 124, column 7
[FATAL] Non-parseable POM C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-vault-dependencies\2.0.0.RELEASE\spring-cloud-vault-dependencies-2.0.0.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</repositories>\n\n</project>\n<?xml ... @136:7)  @ C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-vault-dependencies\2.0.0.RELEASE\spring-cloud-vault-dependencies-2.0.0.RELEASE.pom, line 136, column 7
[FATAL] Non-parseable POM C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-security-dependencies\2.0.0.RELEASE\spring-cloud-security-dependencies-2.0.0.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</profiles>\n</project>\n<?xml ... @96:7)  @ C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-security-dependencies\2.0.0.RELEASE\spring-cloud-security-dependencies-2.0.0.RELEASE.pom, line 96, column 7
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar is missing. @ line 45, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-openfeign:jar is missing. @ line 49, column 21
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] 
[ERROR]   The project com.aikucun:logistics:1.0-SNAPSHOT (D:\workspace_aikucun\logistics\pom.xml) has 5 errors
[ERROR]     Non-parseable POM C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-config-dependencies\2.0.0.RELEASE\spring-cloud-config-dependencies-2.0.0.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</profiles>\n</project>\n<?xml ... @124:7)  @ C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-config-dependencies\2.0.0.RELEASE\spring-cloud-config-dependencies-2.0.0.RELEASE.pom, line 124, column 7 -> [Help 2]
[ERROR]     Non-parseable POM C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-vault-dependencies\2.0.0.RELEASE\spring-cloud-vault-dependencies-2.0.0.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</repositories>\n\n</project>\n<?xml ... @136:7)  @ C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-vault-dependencies\2.0.0.RELEASE\spring-cloud-vault-dependencies-2.0.0.RELEASE.pom, line 136, column 7 -> [Help 2]
[ERROR]     Non-parseable POM C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-security-dependencies\2.0.0.RELEASE\spring-cloud-security-dependencies-2.0.0.RELEASE.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</profiles>\n</project>\n<?xml ... @96:7)  @ C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-security-dependencies\2.0.0.RELEASE\spring-cloud-security-dependencies-2.0.0.RELEASE.pom, line 96, column 7 -> [Help 2]
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar is missing. @ line 45, column 21
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-openfeign:jar is missing. @ line 49, column 21
[ERROR]
[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

解决方案: 删除C:\Users\admin\.m2\repository\org\springframework\cloud\spring-cloud-config-dependencies\2.0.0.RELEASE文件夹下的内容,重新install

不一定是上面的目录,具体看详细信息中缩写的目录

参考网址:https://www.cnblogs.com/wzk-0000/p/10710719.html

posted @   leagueandlegends  阅读(6081)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示