在Eclipse中组织Maven多模块项目 [英] organize maven multi-module project in eclipse

查看:368
本文介绍了在Eclipse中组织Maven多模块项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个庞大的Maven多模块项目.具有相似的结构

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

parentA
  - subA1
     - subA3
     - subA3
  - subA2

parentB
  - subB1
  - subB2

问题是,parentA和subA1里面没有任何代码,但是我仍然可以在项目浏览器中看到它们.但是我想像在资源管理器中一样将它们隐藏或组织成树状层次结构.现在有30多个项目,其中只有20个包含Java代码.其他仅包含其他模块引用.我在项目浏览器中以简单的形式看到了所有30个项目.

The problem is, that parentA and subA1 does not contains any code inside it, but I can still see them in project explorer. But I would like to hide them or organize in tree hierarchy like in an explorer. Right now there are over 30 projects and just 20 of them contains Java code. Others simply contains others modules references. I see all 30 projects in plain form in project explorer.

第一个想法-使用的是工作集,但我不能将工作集包含在另一个工作集中.为Eclipse用户解决此问题的常用做法是什么

The first idea - was using working set, but I can't include working set in another working set. What is the common practice to handle this issue for eclipse users

推荐答案

转到: Windows->首选项-> Maven->隐藏物理嵌套模块的文件夹

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

然后重新导入您的项目.

and re-import your project.

这篇关于在Eclipse中组织Maven多模块项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆