You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2019/10/06 13:34:00 UTC

[jira] [Updated] (MNG-6776) Inconsistent list of parameters in MojoDescriptor

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

Sylwester Lachiewicz updated MNG-6776:
--------------------------------------
    Affects Version/s: 3.6.2

> Inconsistent list of parameters in MojoDescriptor
> -------------------------------------------------
>
>                 Key: MNG-6776
>                 URL: https://issues.apache.org/jira/browse/MNG-6776
>             Project: Maven
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 3.6.2
>            Reporter: Sylwester Lachiewicz
>            Priority: Minor
>
> While working with maven-plugin-tools I discovered inconsistent results returned from MojoDescriptor getParameters() and getParametersMap().
> In [AntMojoDescriptorExtractor.java#L101|https://github.com/apache/maven-plugin-tools/blob/master/maven-script/maven-plugin-tools-ant/src/main/java/org/apache/maven/tools/plugin/extractor/ant/AntMojoDescriptorExtractor.java#L101]
> If first I call MojoDescriptor.getParameterMap() and then later add parameter via MojoDescriptor.addParameter - MojoDescriptor.getParameterMap() will still return map with old (cached) list with parameters.



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