大型Maven项目 [英] Massive Maven Project

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

问题描述

我正在开发一个项目,它的环境在 eclipse 中初始化并已在 eclipse 中构建.项目的加载和运行不乏性能.我们决定在 maven 基础平台上迁移或环境.由于项目的子模块数量(大约 400 个子模块),项目的加载成为一场噩梦.那么在这种情况下有什么解决办法呢?

I am working on a project which it's environment initialized in eclipse and has been built in eclipse. There were no lack of performance in loading and running of project. We decided to migrate or environment on a maven base platform. Due to number of sub modules of project(around 400 sub modules), loading of project become a nightmare. So what is the solution in this kind of situation?

推荐答案

按照以下方法之一将您的 400 个模块项目划分为更小的项目 - 取决于您的开发环境的组织:

Divide your 400-module-project into smaller projects following one of the following approaches - depending on the organisation of your development environment:

1) 按业务领域方面划分

1) Divide by business domains aspects

是否有可以被视为独立的功能?例如.用户/访问控制、主数据管理、会计、报告等.如果有这些,这些都是单独项目的好候选人.

示例:

Is there functionality that can be seen as self-contained? E.g. user/access control, master data management, accounting, reporting, etc. If there is such those are good candidates for separate projects.

Example:

+- your-application
   +- commons
      +- ... functionality/tools used by all others ...
   +- access-control
      +- ... access control modules ...
   +- master-data
      +- ... master data modules ...
   +- accounting
      +- ... accounting modules ...
   +- reporting
      +- ... reporting modules ...
   +- ...
      + ...

2) 按技术方面划分

您的一个数据访问层、一个业务层和一个表示层"非常适合单独的项目.

Your "one data access layer, one business layer and one presentation layer" are good candidates for separate projects.

示例:

+- your-application
   +- commons
     +- ... functionality/tools used by all others ...
   +- data-access
      +- ... your data access modules ...
   +- business
      +- ... your business layer modules ...
   +- presentation
      +- ... your presentation layer modules ...

3) 以上两者的结合

示例:

+- your-application
   +- commons
      +- ... functionality/tools used by all others ...
   +- access-control
      +- data-access
      +- business
      +- presentation
      +- integration-tests
   +- master-data
      +- data-access
      +- business
      +- presentation
      +- integration-tests
      +- ...
   +- accounting
      +- data-access
      +- business
      +- presentation
      +- integration-tests
      +- ...
   +- reporting
      +- data-access
      +- business
      +- presentation
      +- integration-tests
      +- ...
   +- ...
      + ...

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

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