pom.xml出现红叉
---2021.8.18
pom.xml添加thymeleaf后出现左侧pom.xml文件报红叉,项目红色感叹号。
springboot版本:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.3</version> <relativePath/> <!-- lookup parent from repository --> </parent>
估计是thymeleaf使用了旧版本,但是与springboot2.5.3不兼容。
解决:Update Maven Project--勾上Force....
其二:The container ‘Maven Dependencies’ references non existing library
新项目添加了新依赖,而此依赖在另一个项目中添加过,具体为什么导致错误并不清楚。
解决方法:将错误指向的路径删除,然后重新maven->update