MVN_PACKAGE(7)

πŸ’– MVN_PACKAGE πŸ’–

okay bestie, welcome to mvn_package from the Java Packages Tools manual (section 7, the ✨macros✨ zone), no cap.

🌸 NAME 🌸

mvn_package β€” specify target package for Maven artifact(s) πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

%mvn_package artifact-coordinates [target-package]

✨ DESCRIPTION ✨

so basically, the mvn_package macro is the girl who walks into the room and adds instructions for artifact installation to the XMvn reactor configuration. that's her whole job. πŸ’…

what she's for is telling everyone which target package your Maven artifacts should get installed into. main character energy, honestly.

⚠️ now listen, this part matters: the artifact coordinates you specify must match at least one artifact. if they don't? bestie, the behavior is unspecified. we don't know her. 🫠

but here's the slay part β€” you can write coordinates that match multiple artifacts, which means one single call to mvn_package can affect the installation of more than one artifact. efficiency queen. πŸ‘‘

πŸŽ€ OPERANDS πŸŽ€

  • artifact-coordinates β€” the artifact(s) this rule applies to, obvi. coordinates go in this format:
groupId:artifactId[:extension[:classifier]][:version]

and the rules are: if you specify extension then you also have to specify version, no skipping steps πŸ’€. if any part is omitted or is equal to an empty string, it matches any string β€” so it's giving "flexible". wildcards and brace expansions are supported in each part too, because we love options. for more info, go read the XMvn Configuration Reference. πŸ“–

  • target-package β€” the name of the target (sub-)package where the matching artifacts get installed. 🏠

backreferences are supported in the form @n, where n is an integer corresponding to a brace in artifact-coordinates. cute, right?

and there are two special values you need to know about:

  • noinstall β€” means the matching artifact(s) should not be installed to any package. she's on a break. πŸ™ˆ
  • default β€” means the matching artifact(s) should be installed into the main package. home sweet home. πŸ’–

if target-package is omitted entirely, the value __default is assumed. (yes, with the double underscore. she's fancy.)


πŸ‘‘ AUTHOR πŸ‘‘

Originally written by Mikolaj Izdebski. Versions 3.0.0 and later were written by Stanislav Ochotnicky. icons only, honestly. 🫢

😭 REPORTING BUGS 😭

found a bug? not the vibe, but okay β€” bugs should be reported through the Java Packages Tools issue tracker at Github:

https://github.com/fedora-java/javapackages/issues

go tell them, bestie, they'll fix it. πŸ”₯

🌈 SEE ALSO 🌈


that's the whole page, and you ATE it. πŸ“ this one came from the JAVAPACKAGES source, dated 2025-09-19 β€” mwah, go install some artifacts, ily, bye!! πŸ’…βœ¨πŸ§šπŸ’œ

πŸ“¦ where this page comes from