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

NAME

6       pom_add_plugin - add plugin invocation to POM file
7

SYNOPSIS

9       %pom_add_plugin groupId*:*artifactId[*:*version] [POM-location]
10       [extra-XML]
11

DESCRIPTION

13       This macro patches specified POM file adding plugin invocation of given
14       groupId and artifactId.
15
16       groupId and artifactId are identifiers of Maven plugin artifact of
17       which invocation is to be added. groupId may be ommited, in which case
18       value of "org.apache.maven.plugins" is used as default. artifactId must
19       be specified. If version is not specified then default value of "any"
20       is used.
21
22       POM location can be either a full path to the POM file, or a path to
23       the directory containing pom.xml. If POM location is not given then
24       pom.xml from current working directory is used.
25
26       Extra XML is additional XML code to be added into the <plugin> node.
27       This parameter can be ommited, in which case no extra XML is appended.
28

EXAMPLES

30       %pom_add_plugin com.example:plugin foo - this call adds invocation of
31       plugin com.example:plugin to foo/pom.xml.
32
33       %pom_add_plugin :maven-compiler-plugin . "<target>1.5</target>" - this
34       call adds invocation of Maven Compiler Plugin with target configured to
35       1.5.
36

AUTHOR

38       Written by Mikolaj Izdebski.
39

REPORTING BUGS

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

SEE ALSO

45       pom_add_dep(7), pom_add_parent(7), pom_disable_module(7),
46       pom_remove_dep(7), pom_remove_parent(7), pom_remove_plugin(7),
47       pom_set_parent(7), pom_xpath_inject(7), pom_xpath_remove(7),
48       pom_xpath_replace(7), pom_xpath_set(7).
49
50
51
52JAVAPACKAGES                      11/20/2015                 POM_ADD_PLUGIN(7)
Impressum