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

Database on the fly with scripting languages

python sql database sqlite sqlalchemy

I have a set of .csv files that I want to process. It would be far easier to process it with SQL queries. I wonder if there is some way to load a .csv file and use SQL language to look into it with a