首先在项目文件中找到.classpath文件,在其中添加如下代码:
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
之后再update maven,可以看到项目Libraries中已经有Maven Dependencies了
转载自新浪微博