Package org.apache.maven.model.building
Class DefaultModelSourceTransformer
java.lang.Object
org.apache.maven.model.building.DefaultModelSourceTransformer
- All Implemented Interfaces:
ModelSourceTransformer
Default ModelSourceTransformer, provides pomFile as inputStream and ignores the context
- Since:
- 4.0.0
- Author:
- Robert Scholte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontransform
(XmlPullParser parser, Path pomFile, TransformerContext context)
-
Constructor Details
-
DefaultModelSourceTransformer
public DefaultModelSourceTransformer()
-
-
Method Details
-
transform
public XmlPullParser transform(XmlPullParser parser, Path pomFile, TransformerContext context) throws IOException, TransformerException - Specified by:
transform
in interfaceModelSourceTransformer
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
-