How to add “Maven Managed Dependencies” library in build path eclipse?

后端 未结 15 1614
心在旅途
心在旅途 2020-12-04 11:04

I have created a Maven project and I want to add all Maven dependencies in build path of the project in Eclipse. When I go to Java Bui

15条回答
  •  时光取名叫无心
    2020-12-04 11:54

    If Maven->Update Project doesn't work for you? These are the steps I religiously follow. Remove the project from eclipse (do not delete it from workspace) Close Eclipse go to command line and run these commands.

    mvn eclipse:clean
    mvn eclipse:eclipse -Dwtpversion=2.0
    

    Open Eclipse import existing Maven project. You will see the maven dependency in our project.

    Hope this works.

提交回复
热议问题