If you're working with maven 3 you can check the miniguide "Guide to
Woeking with multiple modules". Reactor should sort out your modules in
such way that dependency modules are built earlier in the reactor but in my
experience they would get skipped if you use resume flag. The guide
suggests that you could try including also-make and also-make-dependents to
ensure that modules get rebuilt both ways when you rebuild a particular
module.

My advice is to look through your module declaration order and fix your
poms to not depend on modules that appear later in the build process. That
way you won't depend on reactor figuring out the order for you and reduce
possible headaches in the future.

On Thu, Nov 25, 2021, 11:22 Delany <delany.middle...@gmail.com> wrote:

> Hi. How does --resume-from actually work? Is there any information cached
> between builds somewhere?
> I made some sweeping changes to a 500+ modules reactor. As I fix the build
> errors in each project, I use -rf to continue without restarting each time.
> I finally get to the end of the build thinking I've fixed all the errors,
> but when I run the build again from the beginning new ones pop up.
>
> Thanks,
>

Reply via email to