@Named @Singleton public class DefaultBuildResumptionDataRepository extends Object implements BuildResumptionDataRepository
BuildResumptionDataRepository
persists information in a properties file. The file is
stored in the build output directory under the Maven execution root.Constructor and Description |
---|
DefaultBuildResumptionDataRepository() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
public DefaultBuildResumptionDataRepository()
public void persistResumptionData(MavenProject rootProject, BuildResumptionData buildResumptionData) throws BuildResumptionPersistenceException
BuildResumptionDataRepository
false
to indicate
so.persistResumptionData
in interface BuildResumptionDataRepository
rootProject
- The root project that is being built.buildResumptionData
- Information needed to resume the build.BuildResumptionPersistenceException
- When an error occurs while persisting data.public void applyResumptionData(MavenExecutionRequest request, MavenProject rootProject)
BuildResumptionDataRepository
applyResumptionData
in interface BuildResumptionDataRepository
request
- The execution request that will be enriched.rootProject
- The root project that is being built.public void removeResumptionData(MavenProject rootProject)
BuildResumptionDataRepository
removeResumptionData
in interface BuildResumptionDataRepository
rootProject
- The root project that is being built.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.