Project configuration is not up-to-date with pom.xml错误解决方案

Q:eclipse中maven项目,添加好依赖后,修改了pom.xml文件出现如下错误:
Project configuration is not up-to-date with pom.xml. Select: Maven->Update Project... from the project context menu or use Quick Fix.

S:解决步骤如下:
1、选中项目右键【Maven】-【Update Project】,如下图:
Project configuration is not up-to-date with pom.xml错误解决方案
2.点击【OK】即可,如下图:
Project configuration is not up-to-date with pom.xml错误解决方案