刚刚checkout下来的Maven项目,引入开发工具的时候异常了,一看没有Maven Dependencies . 遂想着去引入Maven Dependencies Library . 发现引入不了,需要配置maven的settings 参数。
查了下资料,发现在项目目录的.classpath文件里面少了关于maven的配置。 于是加上以下配置完美解决:
<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>
加完配置后,刷新下项目,完美解决。 如果项目出现感叹号,右键项目——>Build Path ,查看哪些jar没有引入进来
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有