How to build maven after importing an java spring project

后端 未结 4 736
孤街浪徒
孤街浪徒 2021-01-29 09:00

Hello i am new to java spring concepts . .so i downloaded a sample spring application and import that into eclipse ..i have read from spring tutorials either i have to install m

4条回答
  •  Happy的楠姐
    2021-01-29 09:44

    well,for solution of your problem you must have install maven properly in eclipse.

    first of all convert your spring project to maven project

    by

    Right click on project > Configure > Convert to Maven Project

    after that

    right click on the project

    click on maven

    than click on update dependencies

     1)  Maven >Update Dependencies
    

    and than after right click on project first

     2)  Run As > Maven Clean
    

    and after maven clean do maven install

    3)  Run As > Maven Install
    

    at last clean and bulid your project.

    hope it will help you

提交回复
热议问题