I have a project in Eclipse and now I want to import another project with a different name and in different location, but with a same structure(same packages, a lot of same classes...), but when I try to import it, it says " Some projects cannot be imported because they already exist in the workspace". What should I do if I want to have both of two versions of one project? What should I change? Thx.
3 Answers
As the projects would have the same project names in the .project file, eclipse would not allow them to be imported into the workspace.
Open the .project file for the project root, confirm and change its name and then import it.
<projectDescription> <name>project1</name> </projectDescription> 3 Comments
lomza
Thank You, @Jayendra! Although, changing old project's name in Eclipse also helped!
Pacerier
@Jayendra, Isn't there a way to do this via the UI?
Arturas M
Sure, that works, but what if you have to import another branch in which there are 30 projects, which are interconnected? Won't work with the renaming I suppose because the original project names need to be preserved.