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

后端 未结 2 1650
灰色年华
灰色年华 2021-01-17 20:31

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 s

2条回答
  •  隐瞒了意图╮
    2021-01-17 20:36

    As of Eclipse 4.5 (starting from Mars M5) subprojects are supported. Either import a multi module maven project like here.

    Or create a directory structure like this.

    BaseProj
    ----.project
    ----JavaSubProject1
    --------.project
    --------.classpath
    --------src
    --------JavaSubProject2
    ------------.project
    ------------.classpath
    ------------src
    

    Use 'File->Import->Existing Projects into Workspace' and import only BaseProj. It will import all projects. Be sure to activate hierarhical view in Project Explorer.

    Later edit - When using import dialog, check 'Search for nested projects' otherwise only BaseProj will be created.

提交回复
热议问题