Scanning errors (1): 1 Could not read pom.xml
1. 用maven管理jar包,搭建的spring mvc+hibernate的项目,在修改了pom文件后,父项目在eclipse里面找不到了。很奇怪,把项目都删除了重新导入,发现报了下面这个错误:
Scanning errors (1): 1 Could not read pom.xml
2. 百度了之后,参考这篇文章:maven常见错误,参考内容如下,
- 一..在Eclipse导入已存在工作空间的项目,出现
- 情况1:
- Scanning errors (1):
- 1 Could not read pom.xml
- 就是pom.xml出现了不能解析的配置,把不能解析的配置修改过来.例如去掉
- <build>
- <finalName>testweb</finalName>
- </build>
4. 修改了之后就能正常导入,pom文件错了之后感觉eclipse直接把我的父项目给移除了,找不到了,导入也导入不了。