打开.classpath文件,添加以下内容html
<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>
若是上面的方法解决不了你的问题,你能够去找一个好的.classpath文件进行观察,看有什么区别。eclipse