Interface CiInterpolator

All Known Implementing Classes:
CiModelInterpolator

public interface CiInterpolator
A shameless replacement of ModelInterpolator from maven-model-builder. Made because of class loading issues that ensued when using ModelInterpolator interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.model.Model
    interpolateModel(org.apache.maven.model.Model model, File projectDir, org.apache.maven.model.building.ModelBuildingRequest request, org.apache.maven.model.building.ModelProblemCollector problems)
    Interpolates expressions in the specified model.
  • Method Details

    • interpolateModel

      org.apache.maven.model.Model interpolateModel(org.apache.maven.model.Model model, File projectDir, org.apache.maven.model.building.ModelBuildingRequest request, org.apache.maven.model.building.ModelProblemCollector problems)
      Interpolates expressions in the specified model. Note that implementations are free to either interpolate the provided model directly or to create a clone of the model and interpolate the clone. Callers should always use the returned model and must not rely on the input model being updated.
      Parameters:
      model - The model to interpolate, must not be null.
      projectDir - The project directory, may be null if the model does not belong to a local project but to some artifact's metadata.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
      Returns:
      The interpolated model, never null.