you can resume the build from any module you want by using the -rf command.
For example, if your build failed in myproject-proxy, you can use the following command:
The first improvement in the Reactor is a bug fix.
Previously, if your project build failed on the client module, you would get a hint to resume the build with --resume-from :client. But if you did that, the build would break again: this time because Maven couldn’t find the common module.
You might think that adding --also-make (or -am) would address this, but it wouldn’t. This long-standing bug is no longer there.
If you combine --resume-from :client with --also-make, the Reactor will find all modules in your project and continue the build as you requested.
Automatically resume from the last point of failure
But chances are you will not notice. The thing with --resume-from :client is that it makes you think more than necessary.
With Maven 4, you can make your life even easier and use --resume, or -r for short. It will automatically resume the build from the module that last failed.
But there’s more! Maybe you are using parallel builds.
One sequence of modules was successfully built, while the build of another sequence of modules broke.
In that scenario, using -r will skip the modules that were successful in the previous build.
The combination of these two features may well improve the time you need to build your large, enterprise software project!