步骤1:右键--Maven--Disable Maven nature--Configure--convert to Maven Project--重启eclipse
步骤2:工程的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>