Maven project not being treated as Java in Eclipse

后端 未结 14 711
星月不相逢
星月不相逢 2021-02-05 04:30

I\'m working on a project that has lots of different Maven projects. I\'ve been doing a bunch of JUnit testing on these projects, and usually this goes well. I open up Eclipse

相关标签:
14条回答
  • 2021-02-05 05:19

    If you have tried Amos M. Carpenter's solutions on the .project and didn't work, go to Project -> Properties -> Project Nature and Add... Java, Apply and Close button.

    0 讨论(0)
  • 2021-02-05 05:21

    Right-click on Project -> Properties -> Project Facets, then choose all facets that apply for your case (e.g. java).

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