'\" t
.\"     Title: pom_xpath_replace
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: 11/20/2015
.\"    Manual: Java Packages Tools
.\"    Source: JAVAPACKAGES
.\"  Language: English
.\"
.TH "POM_XPATH_REPLACE" "7" "11/20/2015" "JAVAPACKAGES" "Java Packages Tools"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
pom_xpath_replace \- replace XML node from POM file with given XML code
.SH "SYNOPSIS"
.sp
\fB%pom_xpath_replace\fR XPath XML\-code [POM\-location]
.SH "DESCRIPTION"
.sp
This macro patches specified POM file removing all XML nodes described by the XPath expression and injecting given XML code in their place\&.
.sp
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]\fBhttp://www\&.w3\&.org/TR/xpath/\fR\m[]\&.
.sp
POM location can be either a full path to the POM file, or a path to the directory containing \fBpom\&.xml\fR\&. If POM location is not given then \fBpom\&.xml\fR from current working directory is used\&.
.SH "BUGS"
.sp
POM files use a specific namespace \- \m[blue]\fBhttp://maven\&.apache\&.org/POM/4\&.0\&.0\fR\m[]\&. Currently this namespace needs to be explicitly specified in all XPath POM macros by prefixing all node names with \fBpom:\fR\&.
.SH "AUTHOR"
.sp
Written by Mikolaj Izdebski\&.
.SH "REPORTING BUGS"
.sp
Bugs should be reported through Red Hat Bugzilla at \m[blue]\fBhttp://bugzilla\&.redhat\&.com/\fR\m[]\&.
.SH "SEE ALSO"
.sp
\fBpom_add_dep\fR(7), \fBpom_add_parent\fR(7), \fBpom_add_plugin\fR(7), \fBpom_disable_module\fR(7), \fBpom_remove_dep\fR(7), \fBpom_remove_parent\fR(7), \fBpom_remove_plugin\fR(7), \fBpom_set_parent\fR(7), \fBpom_xpath_inject\fR(7), \fBpom_xpath_remove\fR(7), \fBpom_xpath_set\fR(7)\&.
