Issues with maven project running in eclipse, not recognized as Java project

前端 未结 12 2155
迷失自我
迷失自我 2020-12-24 08:22

I\'ve imported an existing maven project into Eclipse. I tried to set up the configurations for a JUnit test, and my project wouldn\'t come up as a testable project. When I

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-24 08:56

    I had what seemed like the same issue. In my case, I was checking out a Maven project that contained multiple (parent/child) poms.

    If the highest level Maven project within your repository/branch simply manages child poms, it may not contain Java definitions at all. You will need to open these child projects as an independent project within Eclipse.

    You can do this by right clicking on your project -> Import -> Maven -> Existing Maven Projects -> then select child project you are wanting to change.

提交回复
热议问题