Maven: resume build from a module
Case
Your have a multi-module project. For any reason, the build fails on your 32nd project (out of 70).
You indentify the issue, fix it, and need rebuild your project. Yet, you don’t want to rebuild the 31 first projects. Rather, you prefer to start on the 32nd one.
On older version of Maven, you had to edit your pom.xml
, comment the 31 projects, launch the build and uncomment the projects.
Fix
From Maven 2.1, a new option is available: -rf
or —resume-from
. Thanks to this option, you can hint to Maven to restart the build at any point you like.