Reputation: 1081
For a multimodule project how does maven executes?
or
Upvotes: 1
Views: 467
Reputation: 14649
Maven first parse all multi-module tree. Checks dependencies.
If project B dependence on project A project A is build first. The order from <module>
has second priority.
And one general rule - always add <relativePath>../pom.xml</relativePath>
to child poms.
You can not have cycles.
Upvotes: 1
Reputation: 52645
Module by module. maven invokes all the relevant life cycle phases specified by the command on each module, one after the other. Also read the guide to working with multiple modules
Upvotes: 3