Forgive me. I'm a noob at Maven.
Here is my maven project directory:
project/
pom.xml
moduleA/
moduleB/
sub-moduleA/
sub-moduleB/
sub-moduleC/
moduleC/
Of course, within each module and sub-module, they have their own pom.xml
. Also, in this example moduleB
depends on moduleA
and moduleA
depends on moduleC
. I know in maven there are multiple phases it goes through, but does it take each phase one at a time, or take each module one at a time. Right now, the only three phases I'm concerned with is compile
, package
, and install
.
For example:
Does it do it in Order 1:
compile moduleC
compile moduleA
compile moduleB
package moduleC
package moduleA
package moduleB
install moduleC
install moduleA
install moduleB
Or does it do it in Order 2:
compile moduleC
package moduleC
install moduleC
compile moduleA
package moduleA
install moduleA
compile moduleB
package moduleB
install moduleB
Or does it do it in a totally different order, or am I just completely off in my understanding in maven?
I'm running Maven 2.2.1. Thanks!