Skip to content

[MNG-5800] Cannot unset Mojo parameter so that the default applies when parameter is set in the parent POM #7892

@jira-importer

Description

@jira-importer

Tobias Oberlies opened MNG-5800 and commented

In case a Mojo parameter is configured in a parent POM, it seems that there is not way to unset it in a child POM. With "unsetting" I mean provide a POM configuration so that the default value applies, without having to explicitly know the default value.

Steps to reproduce:

  1. For a Mojo parameter with a default value, set an explicit value in the parent POM
  2. In the child POM, try to reset the parameter either with
<configuration>
   <param></param>
</configuration>

or

<configuration>
   <param combine.self="override"></param>
</configuration>

Expected result: The parameter param is set to its default value.

Actual result: In the first case, the configuration from the parent POM still applies. In the second case, the configuration value is set to null for a String parameter.


Affects: 3.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions