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. πŸ’…

  • groupId and artifactId are 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. πŸ™ˆ
  • version is optional! if you don't specify it, the default value any gets 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:


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