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: ifextensionis specified thenversionmust 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 inartifact-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
- 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