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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyResumptionData
(MavenExecutionRequest request, MavenProject rootProject) Uses previously stored resumption data to enrich an existing execution request.void
persistResumptionData
(MavenProject rootProject, BuildResumptionData buildResumptionData) Persists any data needed to resume the build at a later point in time, using a new Maven invocation.void
removeResumptionData
(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:BuildResumptionDataRepository
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 returnfalse
to indicate so.- Specified by:
persistResumptionData
in 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:BuildResumptionDataRepository
Uses previously stored resumption data to enrich an existing execution request.- Specified by:
applyResumptionData
in interfaceBuildResumptionDataRepository
- Parameters:
request
- The execution request that will be enriched.rootProject
- The root project that is being built.
-
removeResumptionData
Description copied from interface:BuildResumptionDataRepository
Removes previously stored resumption data.- Specified by:
removeResumptionData
in interfaceBuildResumptionDataRepository
- Parameters:
rootProject
- The root project that is being built.
-