maven项目pom.xml文件第一行报错解决方法

学习Maven时,新建一个maven项目时,第一行报了一个错,内容如下

Project build error: Non-parseable POM C:\Users\Administrator.m2\repository\org\springframework\data\build\spring-data-build\2.0.6.RELEASE\spring-cloud-contract-dependencies-1.1.5.RELEASE.pom: processing instruction can not have PITarget with reserved xml name

导致问题原因:因为网络原因导致jar没有下好。

解决方法:找到错误提示下的路径,找到然后删除对应的错误jar,我这里删除的就是pring-cloud-contract-dependencies,然后在项目中重新update maven下就好了。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容