Package org.apache.maven.api.spi
Interface ModelTransformer
- All Superinterfaces:
SpiService
Marker interface for model transformers.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Model
transformEffectiveModel
(Model model) Apply a transformation on the effective models.default Model
transformFileModel
(Model model) Apply a transformation on the file model.default Model
transformRawModel
(Model model) Apply a transformation on the raw models.
-
Method Details
-
transformFileModel
Apply a transformation on the file model. This method will be called on each file model being loaded, just before validation.- Parameters:
model
- the input model- Returns:
- the transformed model, or the input model if no transformation is needed
- Throws:
ModelTransformerException
-
transformRawModel
Apply a transformation on the raw models. This method will be called on each raw model being loaded, just before validation.- Parameters:
model
- the input model- Returns:
- the transformed model, or the input model if no transformation is needed
- Throws:
ModelTransformerException
-
transformEffectiveModel
@Nonnull default Model transformEffectiveModel(@Nonnull Model model) throws ModelTransformerException Apply a transformation on the effective models. This method will be called on each effective model being loaded, just before validation.- Parameters:
model
- the input model- Returns:
- the transformed model, or the input model if no transformation is needed
- Throws:
ModelTransformerException
-