Importing a Maven project into Eclipse from Git

前端 未结 14 1555
误落风尘
误落风尘 2020-12-02 06:04

How can I get the effect of choosing to import from both Maven and Git and have Eclipse properly generate my project?

To get my project into Eclipse I can choose Fi

14条回答
  •  抹茶落季
    2020-12-02 06:55


    Step 1 : Setting Up Eclipse

    First of all you'll need to have a few Eclipse plug-ins installed. So use eclipse IDE software install feature in the help dropdown menu → Install new software, and add link to Available Software Site, then install it.

    1. GIT plugin (EGIT)- http://download.eclipse.org/egit/updates
    2. Eclipse Maven plugin (M2Eclipse) - http://download.eclipse.org/technology/m2e/releases
    3. Maven SCM Handler for EGit (m2e-egit)

      Install from the M2E Marketplace (Settings → Maven → Discovery → Open Catalog and search for " m2e-egit")


    Step 2 : Clone the repository

    Clone(download) your Maven Projects from Git

    Check out non-eclipse Maven Projects from Git (File → Import.. → Maven → Check out Maven Projects from SCM)

    File → Import.. → Maven → Check out Maven Projects from SCM

    Now add your git repository link to SCM URI field.Then click next & finish.

提交回复
热议问题