You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/23 12:09:00 UTC
[jira] [Commented] (MNG-5800) Cannot unset Mojo parameter so that
the default applies when parameter is set in the parent POM
[ https://issues.apache.org/jira/browse/MNG-5800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17002242#comment-17002242 ]
Elliotte Rusty Harold commented on MNG-5800:
--------------------------------------------
Can this be changed without breaking backwards compatibility?
> Cannot unset Mojo parameter so that the default applies when parameter is set in the parent POM
> -----------------------------------------------------------------------------------------------
>
> Key: MNG-5800
> URL: https://issues.apache.org/jira/browse/MNG-5800
> Project: Maven
> Issue Type: Bug
> Components: POM
> Affects Versions: 3.2.2
> Reporter: Tobias Oberlies
> Priority: Minor
>
> 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:
> # For a Mojo parameter with a default value, set an explicit value in the parent POM
> # In the child POM, try to reset the parameter either with
> {noformat}
> <configuration>
> <param></param>
> </configuration>
> {noformat}
> or
> {noformat}
> <configuration>
> <param combine.self="override"></param>
> </configuration>
> {noformat}
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)