当我们导入一个项目后,maven依赖的jar包在本地已经存在,但是缺没有maven dependencies,如图:

有时候导入的时候没有上图红色圈出来的那部分,这时候我们可以在.classpath文件中加入
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
博客介绍了在Eclipse中导入项目后,Maven依赖的jar包本地存在但缺少maven dependencies的解决办法。可在.classpath文件中加入特定配置,以解决该问题。
2万+

被折叠的 条评论
为什么被折叠?



