导入maven项目出现:Project configuration is not up-to-date with pom.xml解决方案

导入maven项目后项目上出现了一个大红叉,但是运行又没有问题。看了下Problems上有一个报错信息
Project configuration is not up-to-date with pom.xml…

解决方法:
(1)在maven项目上右击,选择Maven,然后点击Update Project Configuration即可导入maven项目出现:Project configuration is not up-to-date with pom.xml解决方案点击确定就ok了
导入maven项目出现:Project configuration is not up-to-date with pom.xml解决方案(2)直接在导入项目的时候选择maven项目即可
导入maven项目出现:Project configuration is not up-to-date with pom.xml解决方案