apache / apache/maven

[MNG-6808] Need ability to remove inherited plugin configuration

Open
#8,476 4 comments 0 reactions 0 assignees View on GitHub
enhancement priority:minor
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Marcin Wisnicki](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mwisnicki)** opened **[MNG-6808](https://issues.apache.org/jira/browse/MNG-6808?redirect=false)** and commented

There are cases where plugin configuration inherited from parent contains elements that you want removed rather than overridden.

 

For example when developing Hippo CMS projects you are required to inherit their parent pom which provides among other things a Cargo configuration with \.

If you would like to provide instead an \ you need to remove \ as they are mutually exclusive and build will fail if you don't.

Unfortunately at the moment your only option is to replace entire configuration with `` and copy a lot of configuration.

 

It would be great if I could remove inherited element instead with something like:

```java

```

---

**Issue Links:**
- [MNG-6806](https://issues.apache.org/jira/browse/MNG-6806) Provide Maven BOM
(_**"Discovered while testing"**_)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.