Package org.apache.maven.api.services
Interface ModelTransformer
- All Known Implementing Classes:
BuildModelTransformer
public interface ModelTransformer
The ModelTransformer is a way to transform the local pom while streaming the input.
The
transform(ModelTransformerContext, Model, Path)
method uses a Path on purpose, to ensure the
local pom is the original source.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiontransform
(ModelTransformerContext context, Model model, Path path)
-
Method Details
-
transform
@Nonnull Model transform(@Nonnull ModelTransformerContext context, @Nonnull Model model, @Nonnull Path path) throws ModelTransformerException - Parameters:
context
- the context, cannot be nullmodel
- the model to transformpath
- the pom file, cannot be null- Throws:
ModelTransformerException
- if the transformation fails
-