解决方法:
查看项目的.classpath文件中是否存在以下配置
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
如果没有这段代码,则添加.classpath中,刷新项目,just try it,good luck !