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

前端 未结 12 2150
迷失自我
迷失自我 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:49

    Install m2e and subclipse from the Eclipse Marketplace depending on what version of Eclipse you have. Then:

    1. Open Eclipse go to Window > Open Perspective > Other... > SVN Repository Exploring.
    2. Add your svn url to SVN repository/code base.
    3. Select a project. Right Click and select Checkout.
    4. Assuming your project has a pom.xml, switch back to your Java perspective, select the project that was just imported, right click and select Configure > Convert to Maven Project.

    It should now be recognized as both a Maven and a Java project (Maven and Java natures will have been added to the Eclipse .project file)

提交回复
热议问题