POM_ADD_PARENT(7)
π POM_ADD_PARENT π
ok so this is pom_add_parent, one of the Java Packages Tools girlies (it lives in section 7 of the manual, iykyk). short version: it goes into a POM file and gives it a parent. like, "hi yes this is my mom now." β¨
πΈ SYNOPSIS πΈ
%pom_add_parent groupId:artifactId[:version] [POM-location]...
π DESCRIPTION π
ok bestie, listen. This macro patches the POM file you point it at, and it adds a reference to a parent POM using the groupId, artifactId and version you hand it. that's the whole gig. slay. π
groupIdandartifactIdare the identifiers of the Maven group and artifact of the POM that's gonna be referenced as the parent POM. They must be specified. no skipping, bestie, they're not optional, not even a little. πversionis optional! if you don't specify it, the default valueanygets used. cute of it honestly.
Now, POM location β this is where you want the patching to happen. It can be either:
- a full path to the POM file itself, or
- a path to the directory containing
pom.xml.
If you don't give a POM location at all, then pom.xml from the current working directory gets used. default behaviour, very low maintenance, we love that. π«Ά
And the best part: you can specify more file locations and it will process all of them. like, go off, do all of them. π₯
β¨ EXAMPLES β¨
%pom_add_parent foo:bar baz
this call adds a reference to the parent POM artifact foo:bar to the baz/pom.xml file. that's it. that's the example. iconic. π
π AUTHOR π
Written by Mikolaj Izdebski. (ty for your service π«‘)
π REPORTING BUGS π
found a bug?? not the vibe. π Bugs should be reported through the Java Packages Tools issue tracker at Github:
https://github.com/fedora-java/javapackages/issues
π¦ SEE ALSO π¦
the whole friend group, fr fr:
pom_add_dep(7)pom_add_plugin(7)pom_disable_module(7)pom_remove_dep(7)pom_remove_parent(7)pom_remove_plugin(7)pom_change_dep(7)pom_set_parent(7)pom_xpath_inject(7)pom_xpath_remove(7)pom_xpath_replace(7)pom_xpath_set(7)
ok that's the whole page, you're so welcome π this one came from JAVAPACKAGES, dated 2025-09-19, and it's filed under POM_ADD_PARENT(7). periodt. πβ
π¦ where this page comes from
- fedora 43: javapackages-common 6.4.1-4.fc43 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms