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 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 return false to 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

      void applyResumptionData(MavenExecutionRequest request, MavenProject rootProject)
      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

      void removeResumptionData(MavenProject rootProject)
      Removes previously stored resumption data.
      Parameters:
      rootProject - The root project that is being built.