public class PomEditor extends Object
| Constructor and Description |
|---|
PomEditor(InputStream inputStream,
org.apache.maven.plugin.logging.Log log)
Parses the specified pom.xml stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
visitVersions(VersionVisitor visitor)
Inspect all referenced groupId/artifactId/version triplets, allowing to
re-set the version.
|
void |
write(Writer writer)
Writes out the modified pom.xml
|
public PomEditor(InputStream inputStream, org.apache.maven.plugin.logging.Log log) throws ParserConfigurationException, SAXException, IOException
inputStream - the pom.xml datalog - object to use for logging messagesParserConfigurationExceptionSAXExceptionIOExceptionpublic void write(Writer writer) throws DOMException, IOException
writer - object for writing the pom.xml fileDOMExceptionIOExceptionpublic int visitVersions(VersionVisitor visitor) throws XPathExpressionException, org.apache.maven.plugin.MojoExecutionException
XPathExpressionExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2014–2019 SciJava. All rights reserved.