eclipse Maven Dependencies显示不出来的问题

  • 在eclipse新建了java工程, 添加maven的pom.xml, 但是Maven Dependencies以及依赖的jar包并没有预期地显示出来。

 

  •  即便我将工程配置成maven project,update projec...t都不行。

 

  • 解决办法:找到工程下的.classpath文件,添加如下,重启eclipse就出来了
    <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>    

 

posted on 2023-05-09 17:06  pmh905001  阅读(233)  评论(0编辑  收藏  举报

导航