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:


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