Eclipse中的Libraries找不到Maven Dependencies

    xiaoxiao2021-04-18  77

    正常情况下是这样的:

    但是install maven以后发现这个依赖还是不存在,这时候可以手动在项目目录下修改.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>

    添加好以后,保存,重启eclipse后就可以看到上图的结构了。

    转载请注明原文地址: https://ju.6miu.com/read-675356.html

    最新回复(0)