Interface ModelInterpolator
-
- All Known Implementing Classes:
AbstractStringBasedModelInterpolator,StringSearchModelInterpolator,StringVisitorModelInterpolator
public interface ModelInterpolatorReplaces expressions of the form${token}with their effective values. Effective values are basically calculated from the elements of the model itself and the execution properties from the building request.- Author:
- jdcasey
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_MAVEN_REPO_CENTRAL_URLDefault value of Maven repository Central URL.static java.lang.StringMAVEN_REPO_CENTRAL_KEYProperty key that may contain default Maven repository URL.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.maven.model.ModelinterpolateModel(org.apache.maven.model.Model model, java.io.File projectDir, ModelBuildingRequest request, ModelProblemCollector problems)Interpolates expressions in the specified model.
-
-
-
Field Detail
-
MAVEN_REPO_CENTRAL_KEY
static final java.lang.String MAVEN_REPO_CENTRAL_KEY
Property key that may contain default Maven repository URL. This key is used in super POM.- Since:
- 3.10.0
- See Also:
- Constant Field Values
-
DEFAULT_MAVEN_REPO_CENTRAL_URL
static final java.lang.String DEFAULT_MAVEN_REPO_CENTRAL_URL
Default value of Maven repository Central URL.- Since:
- 3.10.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
interpolateModel
org.apache.maven.model.Model interpolateModel(org.apache.maven.model.Model model, java.io.File projectDir, ModelBuildingRequest request, 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 benull.projectDir- The project directory, may benullif 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 benull.problems- The container used to collect problems that were encountered, must not benull.- Returns:
- The interpolated model, never
null.
-
-