pom_xpath_set (7) - Linux Manuals

pom_xpath_set: set text contents of XML node from POM file

NAME

pom_xpath_set - set text contents of XML node from POM file

SYNOPSIS

%pom_xpath_set XPath new-contents [POM-location]

DESCRIPTION

This macro patches specified POM file replacing text contents of all XML nodes described by the XPath expression with given new text content.

XPath is an expression describing a set of XML nodes to be removed from the POM file. It must be a properly formated XPath 1.0 expression, as described in m[blue]http://www.w3.org/TR/xpath/m[].

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.

BUGS

POM files use a specific namespace - m[blue]http://maven.apache.org/POM/4.0.0m[]. 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 m[blue]http://bugzilla.redhat.com/m[].