I have a parent pom defining in pluginManagement some configuration items for a plugin in which there is a particular one config. that I do not want in child pom.
I tried overriding other configuration items in my child pom, which worked, but "removing" a configuration item didn't seem to work. By "removing" I mean I tried not filling in anything, e.g.:
<configuration>
<itemIdontWant></itemIdontWant>
</configuration>
The above didn't work and I still got the same config. in the compilation process. I can fill in some garbage to void the effect of this item, but I want the proper way to "remove" it. Any help?
You can simply try the following:
<configuration>
<itemIdontWant combine.self="override"></itemIdontWant>
</configuration>
The problem with the above could be that if you like to set it to empty the defaults of the plugin will become the value.
Furthermore you can change the inheritance of the configuration by using:
<build>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>...</groupId>
<artifactId>..</artifactId>
</plugin>
</plugins>
</build>
The documentation of the above parts can be found here: https://maven.apache.org/pom.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With