Package org.apache.maven.execution
Class DefaultBuildResumptionDataRepository
java.lang.Object
org.apache.maven.execution.DefaultBuildResumptionDataRepository
- All Implemented Interfaces:
BuildResumptionDataRepository
@Named
@Singleton
public class DefaultBuildResumptionDataRepository
extends Object
implements BuildResumptionDataRepository
This implementation of
BuildResumptionDataRepository persists information in a properties file. The file is
stored in the build output directory under the Maven execution root.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultBuildResumptionDataRepository
public DefaultBuildResumptionDataRepository()
-
-
Method Details
-
persistResumptionData
public void persistResumptionData(MavenProject rootProject, BuildResumptionData buildResumptionData) throws BuildResumptionPersistenceException Description copied from interface:BuildResumptionDataRepositoryPersists 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.- Specified by:
persistResumptionDatain interfaceBuildResumptionDataRepository- 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
Description copied from interface:BuildResumptionDataRepositoryUses previously stored resumption data to enrich an existing execution request.- Specified by:
applyResumptionDatain interfaceBuildResumptionDataRepository- Parameters:
request- The execution request that will be enriched.rootProject- The root project that is being built.
-
removeResumptionData
Description copied from interface:BuildResumptionDataRepositoryRemoves previously stored resumption data.- Specified by:
removeResumptionDatain interfaceBuildResumptionDataRepository- Parameters:
rootProject- The root project that is being built.
-