I\'m writing a maven plugin that has a parameter that\'s a String[].
Like this:
/** * @parameter expression=\"${args}\" */ protected String[] args; <
To update on @nybon’s answer a bit, it seems
@Parameter(property="your.param") private List yourParam;
works, at least when using maven-plugin-annotations:3.5 in Maven 3.5.0. Running with
maven-plugin-annotations:3.5
-Dyour.param=val1,val2
sets the list.