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

NAME

6       pom_add_parent - add parent POM reference to POM file
7

SYNOPSIS

9       %pom_add_parent groupId*:*artifactId[*:*version] [POM-location]
10

DESCRIPTION

12       This macro patches specified POM file adding a reference to parent POM
13       with specified groupId, artifactId and version.
14
15       groupId and artifactId are identifiers of Maven group and artifact of
16       the POM to be referenced as parent POM. They must be specified. If
17       version is not specified then default value of "any" is used.
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_add_parent foo:bar baz - this call adds reference to parent POM
25       artifact foo:bar to baz/pom.xml file.
26

BUGS

28       If specified POM has already a reference to parent POM this macro will
29       not alter or remove it. Instead a second reference will be added. This
30       is usually not the expected behavior as it results in creating invalid
31       POM file. In order to replace existing parent POM reference,
32       pom_set_parent(7) should be used instead.
33

AUTHOR

35       Written by Mikolaj Izdebski.
36

REPORTING BUGS

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

SEE ALSO

42       pom_add_dep(7), pom_add_plugin(7), pom_disable_module(7),
43       pom_remove_dep(7), pom_remove_parent(7), pom_remove_plugin(7),
44       pom_set_parent(7), pom_xpath_inject(7), pom_xpath_remove(7),
45       pom_xpath_replace(7), pom_xpath_set(7).
46
47
48
49JAVAPACKAGES                      11/20/2015                 POM_ADD_PARENT(7)
Impressum