1POM_XPATH_INJECT(7)           Java Packages Tools          POM_XPATH_INJECT(7)
2
3
4

NAME

6       pom_xpath_inject - inject XML code into POM file
7

SYNOPSIS

9       %pom_xpath_inject XPath [XML-code] [POM-location]
10

DESCRIPTION

12       This macro patches specified POM file appending some code as childreen
13       of all XML nodes described by the XPath expression.
14
15       XPath is an expression describing a set of XML nodes in the POM file to
16       which child code is to be appended. It must be a properly formated
17       XPath 1.0 expression, as described in http://www.w3.org/TR/xpath/.
18
19       POM location can be either a full path to the POM file, or a path to
20       the directory containing pom.xml. If POM location is not given then
21       pom.xml from current working directory is used.
22

EXAMPLES

24       %pom_xpath_inject pom:project "<packaging>war</packaging>" - this call
25       sets packaging of POM in current working directory to war.
26

BUGS

28       POM files use a specific namespace - http://maven.apache.org/POM/4.0.0.
29       Currently this namespace needs to be explicitly specified in all XPath
30       POM macros by prefixing all node names with pom:.
31

AUTHOR

33       Written by Mikolaj Izdebski.
34

REPORTING BUGS

36       Bugs should be reported through Red Hat Bugzilla at
37       http://bugzilla.redhat.com/.
38

SEE ALSO

40       pom_add_dep(7), pom_add_parent(7), pom_add_plugin(7),
41       pom_disable_module(7), pom_remove_dep(7), pom_remove_parent(7),
42       pom_remove_plugin(7), pom_set_parent(7), pom_xpath_remove(7),
43       pom_xpath_replace(7), pom_xpath_set(7).
44
45
46
47JAVAPACKAGES                      11/20/2015               POM_XPATH_INJECT(7)
Impressum