新建maven项目错误处理

1.如果新建maven 项目确省maven dependencies,则在存在问题工程的.classpath末尾 加上
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">  
    <attributes>  
        <attribute name="maven.pomderived" value="true"/>  
        <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>  
    </attributes>  
</classpathentry> 

2.MAVEN项目报错:Project configuration is not up-to-date with pom.xml. Run Maven->Update Project

一般是pom.xml被修改了,但是工程还没有同步过来导致的,按照提示说的,在工程上右击执行“Maven->Update Project“项进行同步更新下配置就正常了。
原文地址:https://www.cnblogs.com/camilla/p/8260127.html