Package org.apache.maven.api.spi
Interface ModelTransformer
- All Superinterfaces:
- SpiService
Marker interface for model transformers.
- Since:
- 4.0.0
- 
Method SummaryModifier and TypeMethodDescriptiondefault ModeltransformEffectiveModel(Model model) Apply a transformation on the effective models.default ModeltransformFileModel(Model model) Apply a transformation on the file model.default ModeltransformRawModel(Model model) Apply a transformation on the raw models.
- 
Method Details- 
transformFileModelApply 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
 
- 
transformRawModelApply 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
 
 
-