MAVEN(1)

πŸ“¦
version 1.12 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’… MAVEN πŸ’…

okay so bestie, welcome to MAVEN, section 1 of the manual (the user-commands one, iykyk) ✨ β€” yes the page is titled MAVEN but the actual star of the show is the command it documents, and we're gonna get you all the way together.


🌸 NAME 🌸

Maven β€” installs a POM file into /usr/share/maven-repo. that's it, that's the whole personality πŸŽ€


✨ SYNOPSIS ✨

mh_installpom [option]... [pom]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: this thing installs your POM file into /usr/share/maven-repo, and it drops it at the correct location for Maven β€” like, it knows where it belongs, main character energy fr fr. πŸ’–

But plot twist: before it installs anything, it prepares the POM first, using mh_cleanpom.

And then β€” debian/maven.rules β€” that's the file used to alter the version properties for the library and for its dependencies. lowkey essential.

ngl, prefer to use mh_installpoms instead, because it reuses the info in debian/$package.poms and avoids repetition. it's giving efficient queen. πŸ‘‘

Where:

  • [pom] is the location of the POM file to install.
  • GroupId, artifactId and version will be extracted from this file.

πŸ’– OPTIONS πŸ’–

  • -h --help β€” show this text
  • -V --version β€” show the version
  • -p<package> --package=<package> β€” name of the Debian package which will contain this POM file
  • -h --has-package-version β€” flag that indicates that this POM has the same version as the package, this helps packagers of depending packages
  • -o --no-parent β€” don't inherit from a parent POM
  • -k --keep-pom-version β€” keep the original version of the POM but convert all other versions in dependencies and plugins. If there is a parent POM, keeps its version except when the parent is already registered in the Maven repository
  • -e<version>, --set-version=<version> β€” set the version for the POM, do not use the version declared in the POM file.
  • -r<rules> --rules=<rules> β€” path to the file containing the rules to apply when cleaning the POM. Optional, the default location is debian/maven.rules
  • -u<rules> --published-rules=<rules> β€” path to the file containing the extra rules to publish in the property debian.mavenRules in the cleaned POM. Optional, the default location is debian/maven.publishedRules
  • -i<rules> --ignore-rules=<rules> β€” path to the file containing the rules used to remove certain dependencies from the cleaned POM Optional, the default location is debian/maven.ignoreRules
  • -c<rules> --clean-ignore-rules=<rules> β€” path to the file containing the rules use to remove certain dependencies from the cleaned POM, in addition to the ignore rules specified previously. This is useful in situations such as when the Maven clean target requires more dependencies or plugins to ignore than the build target. All rules defined in clean-ignore-rules will be added to the existing rules in ignore-rules. Optional, the default location is debian/maven.cleanIgnoreRules
  • -s --no-rules β€” don't apply any rules for converting versions, do not even convert versions to the default 'debian' version
  • --no-publish-used-rule β€” don't publish the rule used to transform a POM's own attributes in debian.mavenRules
  • --keep-elements=<elem1,elem2> β€” keep the elements listed here even if they are normally removed by the clean operation. Such elements are build,reports,reporting,prerequisites,profiles.
  • --relocate=<groupId>:<artifactId>:<version> β€” relocate the specified artifact toward the one being installed.
  • -m<repo root>--maven-repo=<repo root> β€” location of the Maven repository, used to force the versions of the Maven plugins used in the current POM file with the versions found in the repository
  • -v --verbose β€” show more information while running
  • -n --no-act β€” don't actually do anything, just print the results
  • -ignore-pom β€” read the POM but don't install it
also yes, -h shows up twice up there β€” that's literally how it's written, so we keep it exactly like that, no notes, we don't make the rules πŸ™ˆ

See also: mh_installpoms(1), mh_cleanpom(1) β€” go read those too, they're cute. 🌈


and that's the whole page bestie 🫢 this was Maven Repo Helper version 1.7.1, dated September 2025 β€” slay, periodt. πŸ’œ

πŸ“¦ where this page comes from