-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
enhancementNew feature or requestNew feature or requestpriority:majorMajor loss of functionMajor loss of function
Description
Slawomir Jaranowski opened MNG-7133 and commented
Currently we can have plugin configurations like:
<configuration>
<listParam>
<listParam>Foo*</listParam>
<listParam>Bar*</listParam>
</listParam>
<configuration>But when we have plugin configuration like:
<configuration>
<listParam>Foo*</listParam>
<listParam>Bar*</listParam>
<configuration>and add method addListParam to Plugin mojo class this is not working.
addListParam method on plugin level is called only once
Plugin code:
public class MyMojo extends AbstractMojo {
@Parameter
private List<String> listParam;
/**
* special method called when inline collection in configuration is used.
*/
public void addListParam(String value) {
listParam.add(value);
}
}Affects: 3.6.3
Issue Links:
-
MNGSITE-445 Document "inlined collections" approach for plugin configuration
-
MNG-5033 Allow to inline collection/array items within plugin configuration
Remote Links:
0 votes, 5 watchers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriority:majorMajor loss of functionMajor loss of function