1POM_CHANGE_DEP(7) Java Packages Tools POM_CHANGE_DEP(7)
2
3
4
6 pom_change_dep - change dependency in Maven POM file or Ivy module
7
9 %pom_change_dep [OPTIONS] SOURCE_ARTIFACT CHANGED_ARTIFACT
10 [POM-location]... [extra-XML]
11
12 %pom_change_dep [OPTIONS] SOURCE_ARTIFACT CHANGED_ARTIFACT
13 [Ivy-module-location]... [extra-XML]
14
16 -r
17 Work in recursive mode. That means that given dependency is also
18 changed in all enabled submodules of given POM file(s). Has no
19 effect if the file is not Maven POM.
20
21 -f
22 Do not throw an error when one of the specified files doesn’t
23 contain given dependency.
24
26 These macros patch specified POM or Ivy file changing a dependency on
27 given Maven artifact specified by artifact coordinates to artifact
28 specified by second set of Maven coordinates. The artifact
29 specification has same format as %pom_add_dep. The omitted or empty
30 parts in second artifact specification cause the original value to be
31 left unmodified. Supplying a special value of - for given part causes
32 that part of artifact specification to be deleted.
33
34 POM location can be either a full path to the POM or Ivy file, or a
35 path to the directory containing pom.xml or ivy.xml. If POM location is
36 not given then pom.xml or ivy.xml from current working directory is
37 used. When both pom.xml and ivy.xml are present, pom.xml is processed.
38 You can specify more file locations which will be processed.
39
40 Extra XML is additional XML code to be added into the <dependency>
41 node. This parameter can be ommited, in which case no extra XML is
42 appended.
43
45 pom_change_dep foo: com.example.foo: - this call changes groupId of all
46 dependencies which have groupId foo to com.example.foo. Their
47 artifactId, versions and other possible parts are left unmodified.
48
50 Written by Michael Simacek.
51
53 Bugs should be reported through Java Packages Tools issue tracker at
54 Github: https://github.com/fedora-java/javapackages/issues.
55
57 pom_add_dep(7), pom_add_parent(7), pom_add_plugin(7),
58 pom_disable_module(7), pom_remove_dep(7), pom_remove_parent(7),
59 pom_remove_plugin(7), pom_set_parent(7), pom_xpath_inject(7),
60 pom_xpath_remove(7), pom_xpath_replace(7), pom_xpath_set(7).
61
62
63
64JAVAPACKAGES 01/25/2023 POM_CHANGE_DEP(7)