Class PomUtils


  • public class PomUtils
    extends Object
    • Constructor Detail

      • PomUtils

        public PomUtils()
    • Method Detail

      • getPluginNode

        public static org.dom4j.Element getPluginNode​(org.apache.maven.plugin.descriptor.PluginDescriptor plugin,
                                                      File pom)
                                               throws FileNotFoundException,
                                                      org.dom4j.DocumentException
        Throws:
        FileNotFoundException
        org.dom4j.DocumentException
      • 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)
      • updateNode

        public static void updateNode​(org.dom4j.Element ele,
                                      Map<String,​Object> map)