Can you give a little bit more context to your projects and why they need to built in a particular order? Typically this is because certain projects depend on others, which should be expressed via project dependencies.
Yes of course. The fact that this is a big project, which consists of a few, and all projects are collected in the war-archive from git repository. And in the case of changes in the projects we need them all over again rebuild. So, for convenience, it was decided to make the build script projects.
If I understand you right, you are building your projects, which then publish to a Maven repo and then the next project pulls that new artifact down from the repo, which is why they have to build in a particular order?