MVN_COMPAT_VERSION(7)

πŸ’– mvn_compat_version(7) πŸ’–

okay bestie, welcome to the mvn_compat_version page from the Java Packages Tools manual πŸ’… this one's short, sweet, and honestly kinda iconic β€” it's the macro that tells your Maven artifacts what version they are. let's get into it ✨


🌸 NAME 🌸

mvn_compat_version β€” set version(s) for Maven artifact(s) πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

%mvn_compat_version artifact-coordinates version [version ...]

✨ DESCRIPTION ✨

so like, the mvn_compat_version macro causes instructions for artifact installation to be added to XMvn reactor configuration. that's the whole job. it's literally used to specify versions for Maven artifacts 🫢

here's the tea though: the artifact coordinates you specify must match at least one artifact. if they don't? behavior is unspecified 😭 which is a fancy way of saying "girl, we don't know what happens, don't do that."

and here's the slay part β€” it's possible to specify artifact coordinates that match multiple artifacts, so one single call to mvn_compat_version can affect the installation of more than one artifact. one call, many artifacts, main character energy fr fr πŸ‘‘


πŸ’… OPERANDS πŸ’…

  • artifact-coordinates β€” these specify the artifact(s) that this rule applies to. coordinates are in the format:
groupId:artifactId[:extension[:classifier]][:version]
heads up: if extension is specified then version must be specified too. non-negotiable bestie.

if any part is omitted or equal to an empty string, then it matches any string. wildcards and brace expansions are supported in each part πŸŒ€ for more information, go check the XMvn Configuration Reference.

  • version β€” strings specifying the artifact version. backreferences are supported in the form @n, where n is an integer corresponding to a brace in artifact-coordinates. iykyk 🌈

πŸ‘‘ AUTHOR πŸ‘‘

written by Stanislav Ochotnicky. we love a legend 🫑


πŸ› REPORTING BUGS πŸ›

found a bug? don't suffer in silence bestie 😭 bugs should be reported through the Java Packages Tools issue tracker at Github:

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

go tell them, they wanna know 🫢


🌈 SEE ALSO 🌈

gradle_build(7), mvn_alias(7), mvn_build(7), mvn_config(7), mvn_file(7), mvn_package(7), xmvn(1).


and that's the whole page, bestie!! πŸ’œ this came to you from JAVAPACKAGES, version dated 2025-09-19, and the page itself is MVN_COMPAT_VERSION(7). go forth and version your artifacts, you absolute icon πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from