POM_SET_PARENT(7)
π POM_SET_PARENT β okay bestie, let's talk parent POMs π
So this is a page from the Java Packages Tools crew, and it's the one about pom_set_parent β living in section 7 of the manual, which is the β¨ macros and conventions β¨ section, iykyk.
πΈ NAME πΈ
pom_set_parent β the macro that sets a parent POM reference inside a POM file. That's the whole job. She's focused. She's booked and busy.
π SYNOPSIS π
%pom_set_parent groupId:artifactId[:version] [POM-location]...
Yes the :version is optional, and yes those ... at the end mean you can hand her a whole little stack of locations. Main character energy fr.
β¨ DESCRIPTION β¨
Okay so here's the tea: this macro patches a POM file for you, and what it's doing is setting the reference to the parent POM β to the groupId, artifactId and version you specified. That's it. That's the vibe.
Now the way she does it is lowkey iconic: this macro first removes the parent POM reference, and then adds a brand new one. So it's (more or less) equivalent to calling %pom_remove_parent and then following it up with %pom_add_parent. Not exactly, but basically. If you wanna know all the deets about the parameters, go read pom_remove_parent(7) and pom_add_parent(7) β they spill everything.
Now, about where the POM lives π β a POM location can be either:
- a full path to the POM file itself, or
- a path to the directory that contains
pom.xml.
And if you don't give a POM location at all? No stress. She just grabs pom.xml from the current working directory. Periodt.
Oh and you can specify more file locations than one β she'll process every single one of them. Multi-tasking queen. π
π¦ EXAMPLES π¦
%pom_set_parent com.example:example-parent module
This call sets the parent POM of module/pom.xml to com.example:example-parent. Simple, clean, ate. π₯
π AUTHOR π
Written by Mikolaj Izdebski. Respect the architect. π«Ά
π REPORTING BUGS π
Found a bug? Not me finding a bug π Please report it through the Java Packages Tools issue tracker on Github, right here:
https://github.com/fedora-java/javapackages/issues
She'll get it fixed, bestie, don't worry.
π SEE ALSO π
The whole friend group, in order:
pom_add_dep(7)pom_add_parent(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_xpath_inject(7)pom_xpath_remove(7)pom_xpath_replace(7)pom_xpath_set(7)
Okay that's the whole page, mwah π β this one came from the JAVAPACKAGES crew, dated 2025-09-19, and it's filed under POM_SET_PARENT(7). Go set some parents, bestie, you got this. πβ¨
π¦ 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