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:
the import wizard gives these 3 options:
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
.select
master
branch onlyonce eclipse has downloaded everything, do not use import facility instead let eclipse finish , nothing.
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..."
solution 2: import maven project import facility
in both of cases, greeted following dialog, can select maven projects downloaded , import them.
Comments
Post a Comment