The -rf / --resume-from flag can be used to resume a Maven build from a particular project. This is useful when fixing an error in a project in the middle of a reactor - it is not necessary to rebuild the projects that do not depend on the failing project.
When using mvnmin the -rf flag is passed down to Maven, and works as expected for single-reactor builds. However, it does not function for multi-reactor builds.
Since the -rf flag is always passed down to the running Maven build, it will be present for reactors that do not contain the project from which the build should resume. When mvnmin attempts to build a reactor that does not contain the project, Maven, and consequently, mvnmin, fails with the following message:
[ERROR] [ERROR] Could not find project to resume reactor build from: :<resume-from-project> vs <reactor that does not include the project> @
[ERROR] Could not find project to resume reactor build from: :<resume-from-project> vs <reactor that does not include the project> -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
mvnmin: Maven failed to run successfully.
mvnmin should intercept the -rf / --resume-from flag and pass it down to Maven only in reactors that include the specified project.
The
-rf/--resume-fromflag can be used to resume a Maven build from a particular project. This is useful when fixing an error in a project in the middle of a reactor - it is not necessary to rebuild the projects that do not depend on the failing project.When using mvnmin the
-rfflag is passed down to Maven, and works as expected for single-reactor builds. However, it does not function for multi-reactor builds.Since the
-rfflag is always passed down to the running Maven build, it will be present for reactors that do not contain the project from which the build should resume. When mvnmin attempts to build a reactor that does not contain the project, Maven, and consequently, mvnmin, fails with the following message:mvnmin should intercept the
-rf / --resume-fromflag and pass it down to Maven only in reactors that include the specified project.