eclipse maven 项目没有maven依赖仓库问题解决
之前是没有Maven Dependencies 这个文件夹仓库
解决办法:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con"
path="unching.JRE_CONTAINER/uncher.StandardVMType/JavaSE-1.7"> <attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
添加箭头所指的配置到项目的classpath文件中
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="ponent.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>。