"Invalid project description" imported from GIT repo issue

After copying my GIT relay from the computer to my MAC, I cannot import it into an eclipse. Import occurs through the eGit plugin directly from the existing local git repository.

Accurate, accurate imports work fine on an existing Windows computer.

Please inform.

 org.eclipse.core.internal.resources.ResourceException: Invalid project description. at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:162) at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:52) at org.eclipse.core.internal.resources.Project.create(Project.java:274) at org.eclipse.core.internal.resources.Project.create(Project.java:256) at org.eclipse.egit.ui.internal.clone.ProjectUtils.createExistingProject(ProjectUtils.java:115) at org.eclipse.egit.ui.internal.clone.ProjectUtils.access$0(ProjectUtils.java:92) at org.eclipse.egit.ui.internal.clone.ProjectUtils$1.run(ProjectUtils.java:66) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1957) at org.eclipse.egit.ui.internal.clone.ProjectUtils.createProjects(ProjectUtils.java:84) at org.eclipse.egit.ui.internal.clone.GitImportWizard.importProjects(GitImportWizard.java:160) at org.eclipse.egit.ui.internal.clone.GitImportWizard.access$0(GitImportWizard.java:142) at org.eclipse.egit.ui.internal.clone.GitImportWizard$1.run(GitImportWizard.java:83) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Contains: OK Contains: /Users/me/Repositories/ABC overlaps the location of another project: 'ABC' 
+18
git eclipse egit
May 21 '11 at 19:49
source share
12 answers

"Contains: / Users / me / Repositories / ABC overrides the location of another project:" ABC "

It looks like you already have a project in your workspace with the same name as the project you want to import.

+25
May 21 '11 at 20:11
source share

Ok, I’ll try to summarize after I run into simulation problems and spend a little time:

Eclipse Juno / 4.2 SR1 (however I think this is a general misunderstanding of how import projects import)

  • If you want your new project to connect to git / mercurial, you need to clone and import using Import / Git / Import from Git
  • Import will fail if your "desktop" is equal to "local destination directory". A git clone via egit MUST NOT be posted! in the eclipse ! workspace dialog box !

Import of the project failed because the project name in the cloned ".project file" allready exists in the eclipse workspace directory upon import.

Hope this saves some time.

+9
Nov 19 '12 at 7:37
source share

The following works for me.

Copy / place your project outside the workspace [for example: E: \ yourproject], then go to
1. File → Import → General → Existing projects in the workspace
2. View your project
3. Select the "Copy projects to workspace" checkbox and click "Finish."
This will make a copy of the project into the workspace.

+7
Jan 06 '13 at 9:59
source share

The simplest solution I've come across is to use Import -> General -> Existing Projects into Workspace .

+5
Dec 03 '12 at 11:05
source share

Try using different directories for your workspace and git project. Workspace -> wsp, Git -Project -> wsp / git -project instead: Workspace / git -Project -> Git -project

+4
Feb 27 2018-12-12T00:
source share

I encounter the same problem and after a while I found the following solution: git repo:

  • remove the project from the workspace (it is there even if eclipse says a failure)
  • import the project as "Import → General → Existing projects in the workspace"
  • repo repair like "Team → Share project → git →"

One more note: your project must contain a .git folder

It works great for me

+2
Feb 11 '13 at 16:00
source share

You have an ABC already in your work area. Delete it and then add it.

+1
May 21 '11 at 20:14
source share

This happens when cloning a remote git repository using the import project -> project from git in the last step.

+1
Oct. 19 '11 at 10:29
source share

Hm I had a similar problem with git repos (cloned from the command line using the git tool): Eclipse corrupted the .git index inside the project when I imported projects cloned inside the eclipse workspace. Than I cloned git repo outside the workspace and imported into eclipse using the "copy to workspace" checkbox and everything works smoothly ...

But it's worth mentioning that I downloaded Eclipse Classic, which comes without egit or without any git related plugins, because I suspected that this egit plugin was dumping the .git directory, except for another import problem.

Perhaps importing an external working directory is what eclipse programmers want from us.

+1
May 09 '13 at 18:22
source share

You should not copy git repositories, you should clone them. However, looking at your error message, this does not look like a git problem.

0
May 21 '11 at 20:09
source share

I just had this error; To solve this problem, I deleted the project from my workspace directory. I threw it on my desktop. Then, when importing the project, select the checkbox that says about copying to the workspace.

In the workspace, Eclipse checks if the directory exists, if it does, it gives an error.

0
Apr 29 '13 at 20:02
source share

Please check it. I had a multi-level project. I could not import one of my subprojects because it gave me an "invalid project description, resource contains /". This is because my subprojects used the plugin: "eclipse", I think so. This is a known issue and an error has been generated for it: https://issuetracker.springsource.com/browse/STS-2614

0
Jan 20 '17 at 20:36
source share



All Articles