Thanks for the reply, again :)

I don't think "-amd" covers my need though. Because there's no parent/child
relationship between the modules/sub-modules there's no dependency between
them. It feels to me like there's an option missing for the reactor here...

A simpler example for clarity:

<a>
  <b>
    <c />
    <d />
    <e />
  </b>
  <f />
  <g />
</a>

Each node is a project, and sub-projects are nested. For dependencies, say
only that "c depends on f". There are no parent-child relationships.

If I want to build <b> with all its sub-modules (<c> <d>
<e>) and dependencies (<f>), can I do that? The only options I
see are:
1 - change to b directory, then "mvn install"
2 - from top level, "mvn install -pl a/b -amd"
3 - from top level, "mvn install -pl a/b/c,a/b/d,a/b/e -amd"

Option 1 builds the sub-modules I want, but doesn't build the dependency
<f>.
Option 2 only builds the project <b>, none of it's sub-modules because
they are not dependents. 
Option 3 works, but it's no good because I need to know & provide all the
sub-modules of <b>.

Ideally there'd be an option like "-ams" (also make sub-modules) which I
could use in option 2, but I can't see any way to do it?



--
View this message in context: 
http://maven.40175.n5.nabble.com/Building-selected-projects-with-nested-aggregators-tp5753572p5755076.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to