user2329564
user2329564

Reputation: 1

Package projects in eclipse

Lets say I have n projects in eclipse and they are only conceptually connected.

How to add every one of these projects as a package in a new umbrella project?

Upvotes: 0

Views: 66

Answers (2)

Nil
Nil

Reputation: 13

In order to logically combine the elements (in this case, projects) together, you can create a "Working Set" in Eclipse. There can be different type of working set.

Here are steps to create a Java working set (as the question is tagged as Java):

  1. File - New - Others..
  2. Select "Java Working Set" under Java.
  3. Select the project you want to add into the working set and give a

Once the working set is created, you can use it at many place in eclipse. Personally I use them a lot in search to narrow the search results and on Package/Project Explorer to see only the projects I am interested in at the moment.

To emphasize that the Java working sets are just logical grouping of the projects, here are couple of examples.

  • Working sets "Batch Projects" and "Web Projects" based on type.
  • Working sets "SVN Projects" and "CVS Projects" based on the source repository.

Read more on the offical eclipse documentation.

Upvotes: 0

bedwyr
bedwyr

Reputation: 5874

In Eclipse you can hook projects together using the Project tab in your build path configuration dialog:

  • right-click on your higher-order project
  • select Build Path
  • select Configure Build Path...
  • select the Projects tab and add the other projects as references

You might also look into Maven as a build management system, which would allow you to create consumable libraries. Each of your projects would use Maven to generate a JAR artifact, and your umbrella project would use Maven to reference them as dependencies. I believe Ivy would also help you in this regard.

Upvotes: 2

Related Questions