Maven project not being treated as Java in Eclipse

后端 未结 14 715
星月不相逢
星月不相逢 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:15

    I was facing the same problem and the steps below solved it in my case:

    1- Open the pom.xml of the problematic project.

    2 -In the overview tab, check the Artifact/Packaging settings.

    3- If it is set to "pom" change it to "jar".

    4- Save your changes and then delete the project from eclipse only and re-import it.

    Hope that helps!

提交回复
热议问题