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

NAME

6       pom_add_dep - add dependency to POM file
7

SYNOPSIS

9       %pom_add_dep groupId*:*artifactId[:*version[:*scope]] [POM-location]
10       [extra-XML]
11
12       %pom_add_dep_mgmt groupId:articId[:*version[:*scope]] [POM-location]
13       [extra-XML]
14

DESCRIPTION

16       These macros patch specified POM file adding a dependency on given
17       version of artifactId from groupId, with given scope (if any).
18       pom_add_dep adds the dependency to <dependencies> XML node, while
19       pom_add_dep_mgmt adds it to dependencyManagement.
20
21       groupId and artifactId are identifiers of Maven artifact on which
22       dependency is to be added. They must be specified. If version is not
23       specified then default value of "any" is used. If scope is not
24       specified then no scope is defined (Maven defaults to "compile" in this
25       case).
26
27       POM location can be either a full path to the POM file, or a path to
28       the directory containing pom.xml. If POM location is not given then
29       pom.xml from current working directory is used.
30
31       Extra XML is additional XML code to be added into the <dependency>
32       node. This parameter can be ommited, in which case no extra XML is
33       appended.
34

EXAMPLES

36       %pom_add_dep foo:bar baz - this call adds dependency on artifact
37       foo:bar to baz/pom.xml file.
38

AUTHOR

40       Written by Mikolaj Izdebski.
41

REPORTING BUGS

43       Bugs should be reported through Red Hat Bugzilla at
44       http://bugzilla.redhat.com/.
45

SEE ALSO

47       pom_add_parent(7), pom_add_plugin(7), pom_disable_module(7),
48       pom_remove_dep(7), pom_remove_parent(7), pom_remove_plugin(7),
49       pom_set_parent(7), pom_xpath_inject(7), pom_xpath_remove(7),
50       pom_xpath_replace(7), pom_xpath_set(7).
51
52
53
54JAVAPACKAGES                      11/20/2015                    POM_ADD_DEP(7)
Impressum