1POM_REMOVE_DEP(7) Java Packages Tools POM_REMOVE_DEP(7)
2
3
4
6 pom_remove_dep - remove dependency on Maven artifact from POM file
7
9 %pom_remove_dep [OPTIONS] [groupId]:[artifactId][:version[:scope]]
10 [POM-location]...
11
12 %pom_remove_dep [OPTIONS] [org]:[name][:rev[:conf[:transitive]]]
13 [Ivy-module-location]...
14
16 -r
17 Work in recursive mode. That means that dependency is also removed
18 from all enabled submodules of given POM file(s).
19
20 -f
21 Do not throw an error when one of the specified files doesn’t
22 contain given dependency.
23
25 This macro patches specified POM file not to contain dependencies on
26 given Maven artifact.
27
28 groupId and artifactId are identifiers of Maven group and artifact of
29 the module on which dependency is to be removed. If they are ommited
30 then all identifiers are matched.
31
32 When modifying Ivy modules, the org and name correspond to the Maven
33 groupId and artifactId.
34
35 POM location can be either a full path to the POM or Ivy file, or a
36 path to the directory containing pom.xml or ivy.xml. If POM location is
37 not given then pom.xml or ivy.xml from current working directory is
38 used. When both pom.xml and ivy.xml are present, pom.xml is processed.
39 You can specify more file locations. If the dependency is not found in
40 all of given files, the command raises an error. This can be overriden
41 with the -f option.
42
44 %pom_remove_dep com.example: - this call removes dependency on all
45 artifacts with groupId com.example from POM in current working
46 directory.
47
48 %pom_remove_dep boo:bar target/location - this call removes dependency
49 on artifacts with groupId foo and artifactId bar from
50 target/location/pom.xml.
51
53 Written by Mikolaj Izdebski.
54
56 Bugs should be reported through Java Packages Tools issue tracker at
57 Github: https://github.com/fedora-java/javapackages/issues.
58
60 pom_add_dep(7), pom_add_parent(7), pom_add_plugin(7),
61 pom_disable_module(7), pom_remove_parent(7), pom_remove_plugin(7),
62 pom_change_dep(7), pom_set_parent(7), pom_xpath_inject(7),
63 pom_xpath_remove(7), pom_xpath_replace(7), pom_xpath_set(7).
64
65
66
67JAVAPACKAGES 02/01/2019 POM_REMOVE_DEP(7)