Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you organize 100+ projects in Eclipse?

Tags:

When you have 5+ languages and 100+ projects, IMO the default of using one workspace is not acceptable because the one workspace becomes horribly disorganized. Having one huge unorganized workspace lowers your productivity.

The question:

What are the more advanced ways of using Eclipse when you have 5+ languages and 100+ projects? I would really appreciate advice that elaborates a little bit more than just giving one sentence like "use multiple workspaces" or "use working sets".


"Must have" requirements:

  • The project navigator only shows related projects (like only projects from abc language or only projects from xyz language)
  • The described method is currently being used by you or someone you know and has been used for more than two weeks

"Would like" requirements:

  • the ability to be able to have projects with the same name (like "helloworld" for language xyz and "helloworld" for language abc)

(Side note:

FYI, one of the reasons for asking on SO.com is because I have searched enough on Google to know that there are LOTS of people who have the same "Help my Eclipse workspace is out of control" problem. )

like image 479
Trevor Boyd Smith Avatar asked Jun 10 '11 19:06

Trevor Boyd Smith


People also ask

How do I manage Workspaces in Eclipse?

You can remove the workspace from the suggested workspaces by going into the General/Startup and Shutdown/Workspaces section of the preferences (via Preferences > General > Startup & Shudown > Workspaces > [Remove] ).

How do I add multiple projects in Eclipse?

If all of your old projects exist in a single directory or in a single parent directory, you can do File -> Import... -> Existing Projects into workspace. Choose a root directory that is a parent all of the projects you want to import. You will then be able to import all of the projects at once.

Is it possible to create project sets in Eclipse?

There is a similar concept in Eclipse to the solutions (similar, not equivalent): Project sets. It is only a GUI option to group your projects into sets. These sets cannot be executed together, and is only visible in the Project navigator. Another way is to create multiple workspace folders, and you can use them as an alternative to solutions.

Can an eclipse workspace be uploaded to source control?

An Eclipse workspace stores a lot of meta-information about projects, their physical location (possibly in or outside of the workspace folder), etc., and even workbench settings. It is not a good idea to upload this information into source control, as it is possible that other developer uses other physical locations for the projects, etc.

Do I need a separate workspace for each Maven project?

And when using project managers like Maven, one maven project is usually divided into many little eclipse projects. It's simply a best practice to have a separate workspace for a project.


2 Answers

The way I work with my hundreds of projects is this:

  • I have one big workspace where I have most of my projects. These projects are all tangentially related. I separate them into working sets. I tend to only show the working sets of the projects that I am working on currently. All other projects are closed.
  • Then I have a few more eclipse workspaces where I keep side projects that are completely independent from the big workspace. The eclipse installations for my side projects are usually different from the installation used by my big workspace because they are customized for the work required by the side project.

For example, my big workspace uses SpringSource Tool Suite, but my side-project workspaces are vanilla Eclipse with m2eclipse installed.

I find that this works well as long as I don't have too many projects opened at once in my big workspace.

like image 169
Andrew Eisenberg Avatar answered Sep 22 '22 23:09

Andrew Eisenberg


  1. File – New – Java Working Set
  2. Add related projects into the working set.
  3. Repeat till most/all projects are in relevant working sets.
  4. In Package Explorer, click view menu (the downward facing triangle icon), Top Level Elements – Working Sets.
  5. Drag and drop reorder the working sets
like image 28
Shivputra N Avatar answered Sep 20 '22 23:09

Shivputra N