Some projects cannot be imported because they already exist in the workspace error in Eclipse

前端 未结 30 2394
予麋鹿
予麋鹿 2020-11-28 01:36

I am trying to import a project that me and my co-worker have been working on.. and keep getting this error after I select-- \"import\" then \"import existing project\" then

相关标签:
30条回答
  • 2020-11-28 02:06

    In case you are using Maven, make sure that your artifactId in pom.xml does not have the same name as any existing project name in your Eclipse project explorer.

    0 讨论(0)
  • 2020-11-28 02:09

    This usually happens when you change the project directory physically without first delete in Eclipse. You can view and delete these hidden projects in the following view:

    Window -> Show View -> Other -> General -> Navigator
    

    Then simply just continue with the process of import existing project.

    0 讨论(0)
  • 2020-11-28 02:09

    Try to rename the value of <name> tag which inside ".project" file of your project.

    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
        <name>Rename this value</name>
        <comment></comment>
        <projects>
    

    This will work for sure. Here you are just renaming your project.

    0 讨论(0)
  • 2020-11-28 02:09

    In my case i had deleted the resources directory from my .metadata.plugins:

    1. Go to your workspace
    2. Enter .metadata.plugins
    3. Delete : org.eclipse.core.resources directory

    0 讨论(0)
  • 2020-11-28 02:12

    You may have a project with same name in your workspace. Try to refresh (file->refresh) your workspace after deleting the another one with same name. A typical situation occurs when you want to re-import a deleted project.

    0 讨论(0)
  • 2020-11-28 02:12

    Take a look in your workspace folder, you may have an old project there with the same name as the one you are importing (even though it's not being shown on eclipse).

    When you delete a project on Eclipse, if you don't check the checkbox on the dialog, it just removes it from the view and doesn't delete the folder on the workspace directory.

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