BUILD-JAR-REPOSITORY(1)

πŸ“¦
version 6.5.1 Β· 5 versions
, in opensuse-leap 16.0

🌸 BUILD-JAR-REPOSITORY πŸ’…

okay so bestie, welcome to the build-jar-repository page β€” it's part of the Java Packages Tools manual, and it's genuinely iconic. Let's get into it ✨


✨ NAME ✨

build-jar-repository β€” literally makes a symlink to a JAR. That's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

build-jar-repository [OPTION]... DIRECTORY JAR|artifact-coordinates

πŸ’– DESCRIPTION πŸ’–

So what this does: it builds a JAR repository in whatever directory you point at, either by copying files or by creating symbolic links. slay.

You can identify the JARs either by their names or by Maven artifact coordinates. And artifact coordinates are Maven artifacts written like this:

groupId:artifactId[:extension[:classifier]]:version

the deets:

  • if extension is omitted, "jar" gets used πŸ’«
  • if classifier is omitted, then an empty classifier is used 🫢

want more info? go look at the XMvn Configuration Reference. iykyk πŸ“š


🌈 OPTIONS 🌈

quick lil heads up: if you specify no option at all, the default action is to create symbolic links. no cap.
  • -c, --copy β€” copy the files. actual copies, actual bytes, no shortcuts πŸ“
  • -h, --hard β€” create hard links. lowkey spicy πŸ”₯
  • -p, --preserve-naming β€” try to keep the original JAR file names as they were (and if there's a nested hit, the slashes in the path still get replaced by underscores). ⚠️ but listen: using this option makes any future automated repository rebuild impossible, and it implies -c unless you say otherwise. so, like, know what you're doing πŸ’€
  • -s, --soft, --symbolic β€” create symbolic links. this is the default, main character energy πŸ‘‘
  • --help β€” display the help text. classic πŸŽ€

🧚 DEPENDENCIES 🧚

using build-jar-repository with artifact-coordinates requires the xmvn-resolve command to be available. and here's the thing β€” you (the user of build-jar-repository) are responsible for making it available on the system. no hand-holding, bestie πŸ™ˆ


⭐ EXAMPLES ⭐

build-jar-repository . jndi

this creates a symbolic link to the jndi JAR in the current working directory. cute and easy ✨

build-jar-repository -h /tmp log4j

this creates a hard link to the log4j JAR in the /tmp directory. 🫢

build-jar-repository -c . org.apache.commons:commons-io

this copies the commons-io JAR to the current working directory. ate. πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

Originally written by Nicholas Mailhot and David Walluck. legends only πŸ’œ


😭 REPORTING BUGS 😭

found a bug? don't suffer in silence, bestie β€” report it through the Java Packages Tools issue tracker on Github:

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

🌸 SEE ALSO 🌸


and that's the page!! πŸŽ€ this was JAVAPACKAGES, dated 2026-05-28, for BUILD-JAR-REPOSITORY(1) β€” go forth and link those JARs, bestie, you're gonna do amazing πŸ’–βœ¨πŸ¦‹