NAME
pomxpathinject - inject XML code into POM file SYNOPSIS
%pomxpathinject XPath [XML-code] [POM-location] DESCRIPTION This macro patches specified POM file appending some code as childreen of all XML nodes described by the XPath expression. XPath is an expression describing a set of XML nodes in the POM file to which child code is to be appended. It must be a properly formated XPath 1.0 expression, as described in http://www.w3.org/TR/xpath/. POM location can be either a full path to the POM file, or a path to the directory containing pom.xml. If POM location is not given then pom.xml from current working directory is used. EXAMPLES
%pomxpathinject pom:project "
war " - this call sets packaging of POM in current working directory to war. BUGSPOM files use a specific namespace - http://maven.apache.org/POM/4.0.0. Currently this namespace needs to be explicitly specified in all XPath POM macros by prefixing all node names with pom:. AUTHOR Written by Mikolaj Izdebski. REPORTING BUGS Bugs should be reported through Red Hat Bugzilla at http://bugzilla.redhat.com/. SEE ALSO pomadddep(7), pomaddparent(7), pomaddplugin(7), pomdisablemodule(7), pomremovedep(7), pomremoveparent(7), pomremoveplugin(7), pomsetparent(7), pomxpathremove(7), pomxpathreplace(7), pomxpathset(7). JAVAPACKAGES 11/20/2015 POMXPATHINJECT(7)