MAVEN(1)
π MAVEN β like, the manual page, bestie π
okay so real talk: this is the man page for Maven (the mh_patchpoms tool from Maven Repo Helper), a lil script that patches POM files using the Maven dependency rules. It lives in the User Commands section of the manual, and honestly? She's niche but she's everything if you're doing Debian Java packaging. π
β¨ NAME β¨
Maven β patches the POM files using the Maven dependency rules. that's it, that's the whole job description, and she does it flawlessly π
πΈ SYNOPSIS πΈ
mh_patchpoms [option]...
yeah, that's the whole vibe. options go in, magic comes out β¨
π¦ DESCRIPTION π¦
okay so here's the tea π΅ β this thing reads the file debian/$package.poms, and then it takes every single POM file that's listed inside that .poms file and transforms it into a POM file that uses the Debian versions of the libraries. glow-up, but for XML. π
and because she's a considerate queen, she also keeps a backup of every POM file she touches, so you can always undo it with mh_unpatchpoms. no cap, always have a safety net bestie π«Ά
π OPTIONS π
-h,--helpβ show this text. the classic "help me pls" move π-V,--versionβ show the version. slay, now you know what you're running β-p<package>,--package=<package>β the package to act on. tell her who she's working with π-k,--keep-pom-versionβ keeps the original version of the POMs, BUT converts all the other versions in dependencies and plugins. and if there's a parent POM? she keeps its version too β except when that parent is already registered in the Maven repository. iykyk, it's giving nuance π-e<version>,--set-version=<version>β set the version for the POM, and do not use the version declared in the POM file. you're overriding, periodt π-r<rules>,--rules=<rules>β path to the file containing the rules to apply when cleaning the POM. this one's optional, and the default location isdebian/maven.rulesπ-R<rule>,--extra-rule=<rule>β an extra rule to apply when cleaning the POM. can occur multiple times, and it works instead of, or in addition to,-rπ₯-u<rules>,--published-rules=<rules>β path to the file with the extra rules to publish in the propertydebian.mavenRulesin the cleaned POM. optional, default location isdebian/maven.publishedRulesπ’-U<rule>,--extra-published-rule=<rule>β an extra rule to publish. can occur multiple times, instead of or in addition to-uβ¨-i<rules>,--ignore-rules=<rules>β path to the file with the rules used to remove certain dependencies from the cleaned POM. optional, default location isdebian/maven.ignoreRulesπ«-I<rule>,--extra-ignore-rule=<rule>β an extra rule used to remove dependencies from the transformed POM. can occur multiple times, instead of or in addition to-iπ-c<rules>,--clean-ignore-rules=<rules>β path to the file with the rules used to remove certain dependencies from the cleaned POM, in addition to the ignore rules specified previously. super useful when, say, the Maven clean target needs more dependencies or plugins ignored than the build target does. all rules defined in clean-ignore-rules get added to the existing rules in ignore-rules. optional, default location isdebian/maven.cleanIgnoreRulesπ§-s,--no-rulesβ don't apply any rules for converting versions. like, none. she won't even convert versions to the default'debian'version. full chaos mode, no notes π--no-publish-used-ruleβ don't publish the rule used to transform a POM's own attributes indebian.mavenRules. keep it private bestie π-d,--debian-buildβ transform during a Debian build, which means that some POM elements will be removed βοΈ-b,--build-no-docsβ if the build doesn't need to build documentation, use this option to remove some POM elements (in particular plugins) which are useless here and may require extra dependencies and make the packaging harder. basically: cut the dead weight π-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. she's yapping, but productively π£οΈ-n,--no-actβ don't actually do anything, just print the results. the "let me rehearse first" option, iconic for testing π
see also:mh_installpoms(1),mh_patchpom(1)β go read your sisters' pages too, they're all in the same friend group π«Ά
and that's the whole page, bestie!! π this manual is from Maven Repo Helper version 1.7.1, dated September 2025 β so like, fresh, current, and serving main character energy in the MAVEN(1) section. now go patch some POMs, you absolute legend πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: maven-repo-helper 1.12 Β· Apache-2.0
- ubuntu stonking: maven-repo-helper 1.12 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms