Package org.apache.maven.model.building
Interface ModelSourceTransformer
- All Known Implementing Classes:
AbstractModelSourceTransformer
,DefaultModelSourceTransformer
public interface ModelSourceTransformer
The ModelSourceTransformer is a way to transform the local pom while streaming the input.
The
transform(XmlPullParser, Path, TransformerContext)
method uses a Path on purpose, to ensure the
local pom is the original source.- Since:
- 4.0.0
- Author:
- Robert Scholte, Guillaume Nodet
-
Method Summary
Modifier and TypeMethodDescriptiontransform
(XmlPullParser parser, Path pomFile, TransformerContext context)
-
Method Details
-
transform
XmlPullParser transform(XmlPullParser parser, Path pomFile, TransformerContext context) throws IOException, TransformerException - Parameters:
pomFile
- the pom file, cannot be nullcontext
- the context, cannot be null- Returns:
- the InputStream for the ModelReader
- Throws:
IOException
- if an I/O error occursTransformerException
- if the transformation fails
-