How to import a GitHub hosted project as a Java Project in Eclipse? -


i have forked project on github:

and i'm trying import (clone) own origin repo locally. managed via bash command line, i'm not being able import project in eclipse , make "java project". it's imported "generic project" packages seen plain directories:

enter image description here

the import wizard gives these 3 options:

enter image description here

if go first 1 says "no projects found" , if go second have no idea how proceed.

is wrong way go? i'm using eclipse mars (4.5.1) egit plugin.

what trying import maven project. first of all, make sure have m2eclipse installed, projects can imported , built automatically.

what in cases following (pictures taken eclipse mars 4.5.1, need adjust eclipse installation shouldn't change much):

  • clone git repository url: https://github.com/iluwatar/java-design-patterns.git.

    enter image description here

  • select master branch only

    enter image description here

  • once eclipse has downloaded everything, do not use import facility instead let eclipse finish , nothing.

    enter image description here

at point, there 2 approaches possible. repository checked out machine, , projects need imported in eclipse maven projects.

solution 1: import maven project git perspective

note: solution requires m2e-egit connector installed. refer answer locate , install it. connector located @ bottom of list, below "m2e team providers" section, , named m2e-egit.

  • still in git perspective, expand git repository, right-click "working tree", , select "import maven projects..."

    enter image description here

solution 2: import maven project import facility

  • go "file > import... > existing maven projects".

    enter image description here

in both of cases, greeted following dialog, can select maven projects downloaded , import them.

enter image description here


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -