MAK Ripon
MAK Ripon

Reputation: 1081

Does maven execute module by module or phase by phase

For a multimodule project how does maven executes?

or

Upvotes: 1

Views: 467

Answers (2)

Andrzej Jozwik
Andrzej Jozwik

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

Raghuram
Raghuram

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

Related Questions