在本地工作區找到該項目.clsspath文件,添加如下代碼:
<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>
插入位置如下:
修改好文件后,Refresh項目,就會發現Maven Dependencies出來了。