How to set a specific order of deployment in Maven?

Having a project with multiple submodules, how do I specify which module is the first to deploy, which is the second and so on?

Answers


This order is same as build order in reactor (deploy of module is done just after it's packaged, module after module), so it depends on dependencies between modules. If there's more than one module with the same "priority" within reactor build order, order in pom.xml is used then.

So, in general, modules with no dependencies on other modules will be build somewhere in the beginning and modules with many dependencies on other modules will be build somewhere in the end.


Need Your Help

Joining Tables in Oracle 8i to Limit Results

sql oracle

My background in SQL is limited, but my Googling isn't, I feel that I might just be missing the vocabulary to ask this question properly so hopefully beyond an answer to my question I can get the

How to identify which web server in a farm served a request?

iis iis-7 load-balancing

We're debugging intermittent issues with a website running on IIS7.