user663724
user663724

Reputation:

Eclipse : Importing Existing Projects into workspace

We have a Existing project downloaded from server which was build on Maven . (this is in the form of Folder Structure )

While import that project in Eclipse , should i use

Existing Projects into workspace

Or

File System

Please guide me

Thank you .

Upvotes: 2

Views: 9417

Answers (3)

Thiagarajan Ramanathan
Thiagarajan Ramanathan

Reputation: 1134

File -> Import... -> General -> Existing Project into Workspace -> Select the archive file by clicking Browse button -> Select the checkbox * Copy projects into workspace. (this answers user462990's question). This way the project is copied into the workspace and the main project is not affected.

If you use "File -> Import... -> Maven -> Existing Maven Projects" you don't get the option to copy projects into workspace.

Upvotes: 0

user462990
user462990

Reputation: 5532

If you import a project into the workspace the files remain in their original locations. I do not know how to avoid this. Often (always) I would like to have a copy of the files in the workspace and leave the project I imported it from in its original location untouched. A frequent use-case is that I have a project and wish to make some changes to it to test out something without affecting the main project. Thanks John

Upvotes: 3

Saket
Saket

Reputation: 46157

If you really have an existing project, then you must have a .project file. Check for that, and if you do have, you should use the Existing Projects into workspace option, and select the root folder of your project.

Since you have a Maven project, you could also import it as Existing Maven Projects, given that you have the Maven plugin installed in your eclipse.

Upvotes: 2

Related Questions