Failed to import github project in eclipse

just created a project on github from my office, and when I came home and tried to import the project into my home machine, but I am not able to do it.

See below for details.

Both eclipse Juno and Egit are installed on both the home and office computers. I can register from the office. but at home I can’t even import the project.

my workspace directory is c: \ gaurang git local directory is d: \ Gaurang \ Webdriver-Data-Driven-Framework

Now, if I select "Import existing projects", he says that the project is not found if I select "Use the new project wizard" - it creates an empty project if I select "Import as a general project" - it creates a project, but not a java project that cannot be compiled or run.

My git repository is https://github.com/Gaurang033/Webdriver-Data-Driven-Framework.git

+6
source share
2 answers

I fought in a similar way while checking https://github.com/angular/angular-seed.git

The problem was that I expected this to happen in one step. The Github project does not contain eclipse files, so of course you cannot import existing projects - other options should work, but they don’t

The solution for me was as follows:

  • Clone the github repository locally, for example. / home / name / git / angular -seed (import ... / Projects from Git / URI)
  • Get a working copy as a simple project (import ... / Projects from Git / local)

I think this is a mistake

As a result, I have a cloned repository in / home / name / git / angular -seed and a skeleton project with a .project file that points to this place

+6
source

You need to insert your .project and .classpath into the repository if you want to import the project using the "Import existing projects" wizard. If they are missing, eclipse cannot detect an existing java project.

+2
source

All Articles