You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/06/06 00:28:00 UTC

[jira] [Commented] (MNG-6446) @Parameters Annotation does not function

    [ https://issues.apache.org/jira/browse/MNG-6446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127189#comment-17127189 ] 

Michael Osipov commented on MNG-6446:
-------------------------------------

Please provide a sample project.

> @Parameters Annotation does not function
> ----------------------------------------
>
>                 Key: MNG-6446
>                 URL: https://issues.apache.org/jira/browse/MNG-6446
>             Project: Maven
>          Issue Type: Bug
>          Components: Plugin API
>            Reporter: Jonathan S Fisher
>            Priority: Major
>              Labels: bug
>             Fix For: waiting-for-feedback
>
>
> If you create a plugin with the following code:
> {code:java}
> @Named
> @Singleton
> public class FileKeysCache implements KeysCache {
>   @Inject
>   private Logger logger;
>   @Inject
>   @Parameters
>   private Map<String, String> parameters;
> }
> {code}
> The `parameters` field is always a blank map. The doc here says is should be a map of parameters: https://wiki.eclipse.org/Sisu/PlexusMigration#.40Configuration



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