Maven Project in Eclipse `org.springframework cannot be resolved to a type` from target path

前端 未结 1 2002
情深已故
情深已故 2020-12-22 04:43

I\'ve rolled onto a maven project that when I run mvn clean install from command line builds and runs fine. I had this project displaying in Eclipse without err

相关标签:
1条回答
  • 2020-12-22 04:59

    The build and WebContent folders indicate that you haven't properly imported Maven project into the Eclipse, hence errors.

    One of the way to fix this:

    • Delete project from the Eclipse.

    • Go to project folder and delete all not needed folders. (Leave src).

    • Go to Eclipse click File -> Import..., select Existing Maven Projects, select your project folder, Finish.

    0 讨论(0)
提交回复
热议问题