Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.2
-
None
Description
The distinction between arrays and collections is often times more a low-tech thingy than anything else, conceptually, both types are useful to hold zero or more items. As such it would be nice if plugin authors can freely choose which type works best for their plugin parameters. E.g. many Maven APIs provide collections yet arrays currently render the nicer plugin docs (component type mentioned). Currently, this is not possible:
/** @parameter default-value="${project.compileSourceRoots}" */ String[] sourceRoots;