Package org.apache.maven.execution
Interface BuildResumptionDataRepository
- All Known Implementing Classes:
DefaultBuildResumptionDataRepository
public interface BuildResumptionDataRepository
Instances of this interface retrieve and store data for the --resume / -r feature. This data is used to ensure newer
builds of the same project, that have the -r command-line flag, skip successfully built projects during earlier
invocations of Maven.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyResumptionData(MavenExecutionRequest request, MavenProject rootProject) Uses previously stored resumption data to enrich an existing execution request.voidpersistResumptionData(MavenProject rootProject, BuildResumptionData buildResumptionData) Persists any data needed to resume the build at a later point in time, using a new Maven invocation.voidremoveResumptionData(MavenProject rootProject) Removes previously stored resumption data.
-
Method Details
-
persistResumptionData
void persistResumptionData(MavenProject rootProject, BuildResumptionData buildResumptionData) throws BuildResumptionPersistenceException Persists any data needed to resume the build at a later point in time, using a new Maven invocation. This method may also decide it is not needed or meaningful to persist such data, and returnfalseto indicate so.- Parameters:
rootProject- The root project that is being built.buildResumptionData- Information needed to resume the build.- Throws:
BuildResumptionPersistenceException- When an error occurs while persisting data.
-
applyResumptionData
Uses previously stored resumption data to enrich an existing execution request.- Parameters:
request- The execution request that will be enriched.rootProject- The root project that is being built.
-
removeResumptionData
Removes previously stored resumption data.- Parameters:
rootProject- The root project that is being built.
-