organize maven multi-module project in eclipse

前端 未结 5 1693
攒了一身酷
攒了一身酷 2021-02-20 02:54

I have a huge Maven multi-module project. With similar structure

parentA
  - subA1
     - subA3
     - subA3
  - subA2

parentB
  - subB1
  - subB2
相关标签:
5条回答
  • 2021-02-20 03:21

    Try using Projects View. It does it for me in these kind of situations.

    Also, you can put filters to exclude certain projects in Package Explorer or other views that you prefer like this: go to PackageExplorer, select View Menu - Filters, check Name filter Patterns and enter the names of the projects you want to hide, separated by commas.

    In other views, instead of View Menu - Filters is View Menu - Customize View.

    You can find a tutorial here but instead selecting Closed Projects enter the name of the projects as I mentioned above.

    As for the tree view I don't think you achieve that because in Eclipse there is no notion of sub-project. Have a look here.

    0 讨论(0)
  • 2021-02-20 03:28

    In Project Explorer, there's a down arrow, if you hover over it, it shows "View Menu".

    Click on it, Project Presentation -> Hierarchical

    0 讨论(0)
  • 2021-02-20 03:31

    go: Windows -> Preferences -> Maven -> Hide folders of physically nested modules

    and re-import your project.

    0 讨论(0)
  • 2021-02-20 03:37

    From the Package Explorer view select filter from 'view menu'. Then select filters, and exclude Non-java projects.

    0 讨论(0)
  • 2021-02-20 03:42

    We can also use working sets.

    1. Choose Top level Elements as 'Working Sets' from Package Explorer / Project Explorer view.
    2. Configure "Working Sets" to manage your projects. Move the Parent project to a different working set and child project in different working sets.
    0 讨论(0)
提交回复
热议问题