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 SummaryModifier and TypeMethodDescriptiontransform(XmlPullParser parser, Path pomFile, TransformerContext context) 
- 
Method Details- 
transformXmlPullParser transform(XmlPullParser parser, Path pomFile, TransformerContext context) throws IOException, TransformerException - Parameters:
- pomFile- the pom file, cannot be null
- context- the context, cannot be null
- Returns:
- the InputStream for the ModelReader
- Throws:
- IOException- if an I/O error occurs
- TransformerException- if the transformation fails
 
 
-