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?
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.