spring - 处理 POM 时出现 Maven 错误:[致命] 不可解析的 POM...PITarget 带有保留的 xml 名称
问题描述
任何人都知道为什么在 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
我到处寻找,我遇到的唯一类似问题是:
任何帮助将不胜感激。
谢谢!
解决方案
显然它与我的代码库或 POM 无关。在我删除“.m2”目录中的所有内容并重建项目后,它开始正常工作。
推荐阅读
- javascript - 在 React 中单击组件时,如何在数组中呈现特定对象?
- arrays - 如何使用 Angular 中的 observables 在 API http 请求的所有页面中获取数据?
- node.js - 如何使用 mongoose 获取最近添加的文档?
- python - 名称以下划线开头的变量/方法是内部的还是受保护的?
- cmake - Cmake添加外部项目?
- c# - 如何修复“路径中的非法字符”。在文件路径中?
- regex - 如何在vim中搜索所有不包含'/'的字符串?
- blockchain - 是否有必要使用加密货币进行支付,使用区块链?
- php - 当声明数组变量在视图中未定义但使用控制器 laravel 5.7 时该怎么办
- bash - 如何验证 IP 地址范围(Shell 脚本)