Reputation: 1
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
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):
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.
Read more on the offical eclipse documentation.
Upvotes: 0
Reputation: 5874
In Eclipse you can hook projects together using the Project tab in your build path configuration dialog:
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