“Invalid project description”, importing from GIT repo problem

前端 未结 13 2194
清酒与你
清酒与你 2020-12-15 17:49

After copying my GIT repo from a PC computer onto my MAC, i can\'t seem to import it to an eclipse. Import happens via eGit plugin directly from existing local

相关标签:
13条回答
  • 2020-12-15 18:33

    Try to use different directories for workspace and git project. Workspace -> wsp, Git-Project -> wsp/git-project instead of: Workspace/Git-Project -> git-project

    0 讨论(0)
  • 2020-12-15 18:35

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

    Looks like you already have a project in your workspace with the same name like the project you would like to import.

    0 讨论(0)
  • 2020-12-15 18:37

    I just had this error; in order to solve it I removed the project from my workspace directory. I threw it on my desktop. Then when importing the project, check the box that says copy into workspace.

    Eclipse checks in your workspace to see if the directory exists already, if it does, it gives the error.

    0 讨论(0)
  • 2020-12-15 18:40

    You should not copy git repos, you should clone them. However, looking at your error message, it doesn't especially seem like a git problem at all.

    0 讨论(0)
  • 2020-12-15 18:44

    I've meet the same issue and after some time found following solution to remain git repo:

    1. remove project from workspace (it's there even if eclipse says about failure)
    2. import project as "Import -> General -> Existing Projects into Workspace"
    3. repair repo as "Team -> Share project -> Git -> "

    Just one more note, your project shall contain .git folder

    It's working fine for me

    0 讨论(0)
  • 2020-12-15 18:48
    mvn eclipse:clean eclipse:eclipse 
    

    I run above command from terminal and build issues in eclipse were resolved.

    0 讨论(0)
提交回复
热议问题