Package com.microsoft.azure.maven.utils
Class PomUtils
- java.lang.Object
-
- com.microsoft.azure.maven.utils.PomUtils
-
public class PomUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPomUtils.CustomSAXContentHandler(package private) static classPomUtils.CustomSAXReaderstatic classPomUtils.LocationAwareElementAn Element that is aware of it location (line number in) in the source document(package private) static classPomUtils.LocatorAwareDocumentFactory
-
Constructor Summary
Constructors Constructor Description PomUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.dom4j.ElementaddPluginNode(org.dom4j.Element pluginsRootNode, org.apache.maven.plugin.descriptor.PluginDescriptor plugin)static StringformatNode(String originalXml, PomUtils.LocationAwareElement parent, org.dom4j.Element newNode)static org.dom4j.ElementgetOrCreateNode(org.dom4j.Element node, String... paths)static org.dom4j.ElementgetPluginConfigNode(org.apache.maven.plugin.descriptor.PluginDescriptor plugin, File pom)static voidupdateNode(org.dom4j.Element ele, Map<String,Object> map)
-
-
-
Method Detail
-
getPluginConfigNode
public static org.dom4j.Element getPluginConfigNode(org.apache.maven.plugin.descriptor.PluginDescriptor plugin, File pom) throws FileNotFoundException, org.dom4j.DocumentException- Throws:
FileNotFoundExceptionorg.dom4j.DocumentException
-
formatNode
public static String formatNode(String originalXml, PomUtils.LocationAwareElement parent, org.dom4j.Element newNode)
-
addPluginNode
public static org.dom4j.Element addPluginNode(org.dom4j.Element pluginsRootNode, org.apache.maven.plugin.descriptor.PluginDescriptor plugin)
-
getOrCreateNode
public static org.dom4j.Element getOrCreateNode(org.dom4j.Element node, String... paths)
-
-