可能有兩個原因:
1、maven中某些jar包下載不下來
從其他地方下載jar文件放到相應maven本地庫的.m2里
2、.classpath文件中缺少(下面代碼的作用是制定maven的jar發布路徑)
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>