Change workspace eclipse

0

I'm working with a repository and for some reason the current version corrupted me, so I decided to create a new folder and download the sources again. In Juno eclipse I have selected to change the selected workspace the new folder as source.

The first thing that happens is that the workspace is completely blank and when trying to import the project I get the error:

    
asked by Cristian 31.08.2017 в 18:18
source

1 answer

0

This problem happens when you have the same workspace of Eclipse and you try to open two projects that have the same name in the pom. That is, if you check the pom of your two projects, you will find the following:

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>nombre.de.paquete.principal</groupId>
  <artifactId>mi-proyecto</artifactId>
  <version>numero de version de tu proyecto</version>
</project>

When Eclipse tries to import a maven project, what it does is create a project and take as its name the aftifactId indicated in the pom. If it detects that, in the current workspace, there is a project with the same name, it throws the error that you indicate in the question.

Options to solve the problem:

  • Remove the obsolete or old project from your workspace. This means that it disappears from the Eclipse workspace, is not the same as physically removing the project . After removing it, you can add the new project or the new version.
  • Use a new workspace. Consider that this usually means that you will have to install the plugins, change the settings, among other things that you may already have established in your current workspace.
  • Use the option that best suits your needs.

        
    answered by 01.09.2017 / 02:40
    source