myeclipse maven项目没有maven depencies,找到项目下.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>
参考:http://blog.sina.com.cn/s/blog_4a5dbd380101f2o9.html,谢谢
解决MyEclipse Maven依赖缺失
本文介绍了解决MyEclipse中Maven项目缺少依赖的问题。通过编辑项目的.classpath文件并加入特定配置,可以成功引入Maven依赖。适用于使用MyEclipse作为开发环境的Java开发者。
1万+

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



