Search code examples
javaeclipsebuild-processbuildosgi

How to setup an Eclipse Project with multiple Subprojects (OSGi-Bundles)


Sherlog is an OSGi-based log analyzer, if I import this project as an workspace snapshot I receive lot's of projects in my workspace, but I would prefere to have them as subprojects in a project.

The other option would be to checkout from svn, but then I face other problems (I don't know how to setup the dependencies for automatically build)

Does anyone have an idea or good links on this topic? Thanks


Solution

  • EDIT: For Eclipse 4.5 and newer please see https://stackoverflow.com/a/34134833/53897


    Eclipse does not support subprojects. The Eclipse way of life is one or more projects in a workspace (perhaps using work sets to avoid seeing them all).

    As a consequence we have established an approach where we switch workspaces when switching projects. Team Projects are nice for this for CVS. For git I do a separate clone for each workspace as the Maven support in Eclipse does not pick up changes in the pom hierarchy (like a new project) easily.