[
https://issues.apache.org/jira/browse/MPLUGIN-410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17572342#comment-17572342
]
Romain Manni-Bucau commented on MPLUGIN-410:
--------------------------------------------
[~hboutemy] assume you have an interface `FileConfiguration` and an
implementation you want to use (`implementation=xxx`) which is
`FileConfigurationImpl`, then instead of doing `@Parameter
List<FileConfiguration> configs;` you can do `@Parameter
List<FileConfigurationImpl> configs;` and be it so `implementation=xxx` is
almost always useless. For pluggable and heterogeneous cases (multiple
implementations of `FileConfiguration` for example `LocalFileConfiguration` and
`HDFSFileConfiguration`) then you can use plexus attributes to set the class (a
bit like shade plugin does for transformers) and use `FileConfiguration` so
both cases homogeneous (plugin driven) and heterogeneous (user driven) are
already handled without this attribute from my window.
> Create implementation attribute for @Parameter as it exists for javadoc
> @parameter
> ----------------------------------------------------------------------------------
>
> Key: MPLUGIN-410
> URL: https://issues.apache.org/jira/browse/MPLUGIN-410
> Project: Maven Plugin Tools
> Issue Type: Improvement
> Components: maven-plugin-tools-annotations
> Reporter: Herve Boutemy
> Assignee: Slawomir Jaranowski
> Priority: Major
> Fix For: 3.7.0
>
>
> it exists in javadoc annotations:
> https://maven.apache.org/plugin-tools/maven-plugin-tools-java/ (line 33)
> that goes into plugin.xml descriptor
> https://maven.apache.org/ref/3.8.6/maven-plugin-api/plugin.html (line 44)
> but was forgotten in Java 5 annotations:
> https://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/ (line
> 44)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)