pom_remove_plugin man page

pom_remove_plugin — remove Maven plugin invocation from POM file


%pom_remove_plugin [Options] [groupId]:[artifactId][:version[:scope]] [POM-location]...



Work in recursive mode. That means that plugin is also removed from all enabled submodules of given POM file(s).


Do not throw an error when one of the specified files doesn’t contain given dependency.


This macro patches specified POM file not to contain invocations of given Maven plugin.

groupId and artifactId are identifiers of Maven group and artifact of the plugin which invocation is to be removed. If they are ommited then all identifiers are matched.

POM location can be either a full path to the POM file, or a path to the directory containing pom.xml. If POM location is not given then pom.xml from current working directory is used. You can specify more file locations which will be processed. You can specify more file locations.


%pom_remove_plugin :maven-shade-plugin - this call removes invocation of Maven Shade Plugin from POM in current working directory.


Written by Mikolaj Izdebski.

Reporting Bugs

Bugs should be reported through Java Pacakges 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).

Referenced By

pom_add_dep(7), pom_add_parent(7), pom_add_plugin(7), pom_change_dep(7), pom_disable_module(7), pom_remove_dep(7), pom_remove_parent(7), pom_set_parent(7), pom_xpath_disable(7), pom_xpath_inject(7), pom_xpath_remove(7), pom_xpath_replace(7), pom_xpath_set(7).

07/03/2017 JAVAPACKAGES Java Packages Tools