POM_REMOVE_PLUGIN(7)
π POM_REMOVE_PLUGIN π
okay bestie, so pom_remove_plugin is the little Java Packages Tools macro that yeets a Maven plugin invocation out of your POM file. that's it, that's the job. no cap. π
β¨ SYNOPSIS β¨
%pom_remove_plugin [OPTIONS] *:*[artifactId][:version[:scope]]
[POM-location]...
like, yes, there's a *:* in there, do not panic, i promise it makes sense in a sec π«Ά
πΈ OPTIONS πΈ
-rβ recursive mode, babes. it means the plugin also gets removed from all enabled submodules of the POM file(s) you gave it. the removal just β¨travelsβ¨.-fβ the "please don't yell at me" flag. it stops the macro from throwing an error when one of the files you specified doesn't contain the dependency you asked about. lowkey essential in messy repos π
π¦ DESCRIPTION π¦
this macro patches the POM file you point it at so it no longer contains invocations of the given Maven plugin. gone. deleted. not me manifesting a clean build π
so groupId and artifactId are the identifiers of the Maven group and artifact of the plugin whose invocation is getting removed. and here's the tea: if they're ommited then all identifiers are matched. (that's how the original spells it, so that's how i'm spelling it, fr fr π)
now for where the file lives:
- a POM location can be a full path to the POM file, or
- a path to the directory containing
pom.xml.
if you don't give a POM location at all? it just uses pom.xml from the current working directory. main character energy, honestly.
and you can specify more file locations which will be processed. and yes β you can specify more file locations. (the original said it twice, so i'm saying it twice, that's the rule and i respect the rule π)
π EXAMPLES π
%pom_remove_plugin :maven-shade-plugin
this call removes invocation of the Maven Shade Plugin from the POM in the current working directory. one line, one plugin, zero shade (well, technically one shade removed π). ate and left no crumbs.
π AUTHOR π
Written by Mikolaj Izdebski. icon behaviour, honestly. π«Ά
π 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
β SEE ALSO β
pom_add_dep(7), pom_add_parent(7), pom_add_plugin(7), pom_disable_module(7), pom_remove_dep(7), pom_remove_parent(7), pom_change_dep(7), pom_set_parent(7), pom_xpath_inject(7), pom_xpath_remove(7), pom_xpath_replace(7), pom_xpath_set(7).
the whole friend group, basically. go say hi π§
reminder bestie: this page is from JAVAPACKAGES, dated 2025-09-19. that's the source, that's the date, and this is your girl signing off πβ¨ππ¦πΈπ slay, go clean up those POMs.
π¦ 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