You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Hoffer <dh...@gmail.com> on 2015/07/16 17:37:27 UTC

Multi-module build & phases

I'm curious how phases are resolved in a multi-module build, are all phases
resolved/executed sequentially in each module or are they resolved across
all modules and then executed per module?

Example if in module A (which is before B in the reactor) it uses the
build-helper-maven-plugin's attach-artifact goal in the package phase and
then in module B it references that attached artifact in it's
process-resources phase will that work?  Or does module A need to call that
goal in it's process-resources phase (or prior)?

-Dave

Re: Multi-module build & phases

Posted by Laurence Bordowitz <lb...@yahoo-inc.com.INVALID>.
Module A goes through all phases, then Module B goes through all phases. Unless it's done in parallel, then they go through phases in parallel. Unless A depends on B, in which case they are sequential.
The workflow you describe will probably work.
 -- Larry Bordowitz
 


     On Thursday, July 16, 2015 8:38 AM, David Hoffer <dh...@gmail.com> wrote:
   

 I'm curious how phases are resolved in a multi-module build, are all phases
resolved/executed sequentially in each module or are they resolved across
all modules and then executed per module?

Example if in module A (which is before B in the reactor) it uses the
build-helper-maven-plugin's attach-artifact goal in the package phase and
then in module B it references that attached artifact in it's
process-resources phase will that work?  Or does module A need to call that
goal in it's process-resources phase (or prior)?

-Dave