Importing a Maven project into Eclipse from Git

前端 未结 14 1557
误落风尘
误落风尘 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:46

    Eclipse Indigo + M2Eclipse 1.0 makes it very easy.

    If you don't already have the Git connector for M2Eclipse install it. M2Eclipse will help you along by prompting you on the Import menu.

    1. Select the "Import..." context menu from the Package Explorer view
    2. Select "Check out Maven projects from SCM" option under the Maven category
    3. On the window that is presented choose the link "Find more SCM connectors in the m2e Marketplace
    4. Find connector for Git...install...restart

    Note that in the search box you may have to enter "EGit" instead of "Git" to find the right connector.

    With that done, simply go to the EGit repository, bring up the context menu for the Working directory and select "Import Maven projects...".

    Done!

提交回复
热议问题