You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marcin Wisnicki (Jira)" <ji...@apache.org> on 2019/12/03 17:54:00 UTC

[jira] [Updated] (MNG-6808) Need ability to remove inherited plugin configuration

     [ https://issues.apache.org/jira/browse/MNG-6808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcin Wisnicki updated MNG-6808:
---------------------------------
    Description: 
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 <zipUrlInstaller>.

If you would like to provide instead an <artifactInstaller> you need to remove <zipUrlInstaller> as they are mutually exclusive and build will fail.

Unfortunately at the moment your only option is to replace entire configuration with {{<configuration combine.self="override">}} and copy a lot of configuration.

 

It would be great if I could remove inherited element instead with something like:
{code:java}
<zipUrlInstaller combine.self="remove">{code}

  was:
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 <zipUrlInstaller>.

If you would like to provide instead an <artifactInstaller> you need to remove <zipUrlInstaller> as they are mutually exclusive and build will fail.

Unfortunately at the moment your only option is to replace entire configuration with {{<configuration combine.self="override">}} and copy a lot of configuration.

 

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

<zipUrlInstaller combine.self="remove">


> Need ability to remove inherited plugin configuration
> -----------------------------------------------------
>
>                 Key: MNG-6808
>                 URL: https://issues.apache.org/jira/browse/MNG-6808
>             Project: Maven
>          Issue Type: New Feature
>          Components: POM
>            Reporter: Marcin Wisnicki
>            Priority: Major
>
> 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 <zipUrlInstaller>.
> If you would like to provide instead an <artifactInstaller> you need to remove <zipUrlInstaller> as they are mutually exclusive and build will fail.
> Unfortunately at the moment your only option is to replace entire configuration with {{<configuration combine.self="override">}} and copy a lot of configuration.
>  
> It would be great if I could remove inherited element instead with something like:
> {code:java}
> <zipUrlInstaller combine.self="remove">{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)