Greetings, Is it possible to write a "plugin of plugins"?? I.e. a plugin that is simply a composite of other plugins.
To make this concrete, imagine that you have a common set of plugins that are used across many projects -- together forming a common build system. For example, in project A you have <plugins. <plugin/> ..... plugin X at phase 1 <plugin/> ..... plugin Y at phase 5 <plugin/> ..... plugin Z at phase 7 <plugins> Now I want to re-use this same "build system" in project B. I understand that I can move this to a parent POM and use inheritance in both projects A and B -- but this doesn't smell right to me. This is really a "has-a" relationship, not an "is-a" relationship What seems to make more sense would be to encapsulate these plugins into a composite plugin, say plugin XYZ. And declare only that in the <plugins> section. This would allow one to use the Composite Pattern when assembling a build system. Is this possible?? Thanks, -- Chris
