1POM_ADD_PLUGIN(7) Java Packages Tools POM_ADD_PLUGIN(7)
2
3
4
6 pom_add_plugin - add plugin invocation to POM file
7
9 %pom_add_plugin groupId:artifactId[:version] [POM-location]...
10 [extra-XML]
11
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. You can specify more
25 file locations which will be processed.
26
27 Extra XML is additional XML code to be added into the <plugin> node.
28 This parameter can be ommited, in which case no extra XML is appended.
29
31 %pom_add_plugin com.example:plugin foo - this call adds invocation of
32 plugin com.example:plugin to foo/pom.xml.
33
34 %pom_add_plugin :maven-compiler-plugin . "<target>1.5</target>" - this
35 call adds invocation of Maven Compiler Plugin with target configured to
36 1.5.
37
39 Written by Mikolaj Izdebski.
40
42 Bugs should be reported through Java Packages Tools issue tracker at
43 Github: https://github.com/fedora-java/javapackages/issues.
44
46 pom_add_dep(7), pom_add_parent(7), pom_disable_module(7),
47 pom_remove_dep(7), pom_remove_parent(7), pom_remove_plugin(7),
48 pom_set_parent(7), pom_xpath_inject(7), pom_xpath_remove(7),
49 pom_xpath_replace(7), pom_xpath_set(7).
50
51
52
53JAVAPACKAGES 01/26/2021 POM_ADD_PLUGIN(7)