MVN_ARTIFACT(7)

πŸ’– MVN_ARTIFACT πŸ’–

okay so bestie, welcome to mvn_artifact β€” it's a macro from Java Packages Tools (that's the manual section we're chilling in, MVN_ARTIFACT(7), no cap) and its whole vibe is: request installation of a Maven artifact. ✨


🌸 NAME 🌸

mvn_artifact β€” request installation of Maven artifact 🫢


πŸŽ€ SYNOPSIS πŸŽ€

%mvn_artifact [options] model [artifact-file]

%mvn_artifact [options] artifact-coordinates artifact-file

✨ DESCRIPTION ✨

So the mvn_artifact macro literally just marks a specified Maven artifact so that a later call to mvn_install will install it. That's it, that's the job. πŸ’…

And the way it works is lowkey cute: you can call mvn_artifact and/or mvn_build multiple times to request installation of multiple artifacts. Stack 'em up, queen. πŸ‘‘


πŸ’œ OPTIONS πŸ’œ

  • --skip-dependencies β€” do NOT go gather the list of dependencies for the given Maven artifact. Skip. Bypass. Not today. πŸ™ˆ
  • -Dproperty=value β€” add an artifact property. That's the whole thing. πŸŽ€

πŸ¦‹ OPERANDS πŸ¦‹

  • model β€” the path to the raw project object model (POM) file that gets associated with the artifact and installed alongside it. πŸ“
  • artifact-file β€” the path to the file that's gonna be used as the artifact file. And bestie, heads up: if it's omitted, then no artifact file is installed. So like… nothing. πŸ«₯
  • artifact-coordinates β€” these specify the artifact to be installed. And if you specify this, then no model file is installed with the artifact β€” it's one or the other, periodt. The coordinates are in this format:
groupId:artifactId[:extension[:classifier]]:version

Notes, because details matter: if extension is omitted then "jar" is used. If classifier is omitted then an empty classifier is used. Want more lore? Go see the XMvn Configuration Reference. πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

Written by Michal Srb. πŸ’– (iconic behavior, honestly)


πŸ’€ REPORTING BUGS πŸ’€

Found a bug? 😭 Do not suffer in silence β€” bugs should be reported through the Java Packages Tools issue tracker at Github:

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

🌈 SEE ALSO 🌈

gradle_build(7), mvn_build(7), mvn_install(7).

iykyk. go read those next, bestie. πŸ“–βœ¨


JAVAPACKAGES Β· 2025-09-19 β€” mwah, that's the source/version and the date this page was last touched, so when you're out here slaying builds just know the docs got their glow-up on September 19, 2025. bye bestie, go install some artifacts πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from