Details
-
Type:
Improvement
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0.1
-
Fix Version/s: Issues to be reviewed for 3.x
-
Component/s: Plugin API
-
Labels:None
-
Complexity:Intermediate
Description
For example in the clover plugin i have both report mojos and main build mojos. They need to share lots of configuration elements and common methods but it's not easy to do so because each type needs to extend either AbstractMavenReport or AbstractMojo. Of course I could not extend AbstractMavenReport and instead implement the interface but then I'll have to reimplement all its methods.
can you elaborate on what you mean here?
If they are sharing types - there is no reason this can't be done with a subelement (eg, like MavenArchiveConfiguration in jar, war, etc).
Other things might be sharable by the plugin context.
Please reopen if neither of these address your needs.