Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As far as I know, there is no solution to answer what you asked.</p> <p>You have to keep in mind that multimodule projects (aggregation) means that every submodule share the same application lifecycle. This is <strong>really</strong> what modules and aggregation are intended to.</p> <p>I see 2 differents workarounds.</p> <h2>You have 2 real differents lifecycles</h2> <p>There is indeed 2 groups in your 4 submodules, lets say group1 : A and B, group 2, C and D.</p> <p>Split them into 2 new projects : </p> <pre><code>Group1 |-- Project A | `-- pom.xml |-- Project B | `-- pom.xml `-- pom.xml Group2 |-- Project C | `-- pom.xml |-- Project D | `-- pom.xml `-- pom.xml </code></pre> <p>Pro : You may be able to branch group 1 and 2 separately. Cons : You won't be able anymore to perform simultaneaous action (in one command) on every project (like realeasing or builind them)</p> <h2>You really have 1 single lifecycle</h2> <p>This is probably the case. You may want to branch only 1 or 2 submodules because of your very good understanding of the underlying architecture of the project. An so, you don't want to deal with too many conf / artifacts / time building ... Indeed, all those reasons may have indirects impacts that you won't see. Always build the whole project !</p> <p>If this is for space saving (however most of SCM allow you to branch with few space, like Yorkw said), because your SCM allow you to get only submodules (and maybe both, like for Clearcase) ... sorry, there is no solution. This is the maven way, and I think this is the good one. (ok it's a little bit demagogic, but I really believe what I said)</p> <p><strong>Don't hesitate to explain us why you really want to branch only a subset of your modules.</strong> If there is another reason, you may have more accurate(s) solution(s).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload