Maven Multi Module benefits over simple dependency

前端 未结 4 892
暗喜
暗喜 2021-01-30 13:06

I have some years of experience with maven projects, even with multi modules ones (which has made me hate the multi modules feature of maven (so the disclaimer is now d

4条回答
  •  我在风中等你
    2021-01-30 13:30

    The major benefit of multi modules are

    • one single maven command to build all your modules at once.
    • and the most important : maven take care of the build order for you.
    • configuring your CI-server is also very easy: one single jenkins job to build everything.

    I already worked in a project with about 30 submodules. Sometimes, you need to change something in more than module, and running one single command and being sure that everything that need to be compiled is compiled in the correct order is a must.

    EDIT

    Why 30 submodules ?

    Huge framework with lot's a features, lot's of developers, separation of features on a module base. It's a real life use case and the separation of the code into module was really meaningful.

提交回复
热议问题